Vai al contenuto

Come acquisisco i diritti di root???


Skaman

Messaggi raccomandati

come si acquisisconoi diritti di root sul terminale??

sotto linuzz ho "apri shell di root"

ma qui??

in sostanza il mio problema è con proftpd il cui readme:

grassie

ProFTPd 1.2.4 MacOSX (Darwin)



ProFTPd is GPL software.  ProFTPd is free software.  You may acquire source from:



the /src directory of this disk image

[url]http://www.proftpd.org[/url]

[url]http://proftpd.linux.co.uk/index.html[/url]

[url]ftp://ftp.proftpd.org/distrib/source/[/url]



You may distribute this software freely, as long as you include source, or refer back to primary maintainer and/or repository for source.



This is a merely a pre-baked build for MacOSX, as many people were having problems patching and editing source files.



-----------------------------------------------------------------



IMPORTANT:



This source was compiled with none of the many additional modules built-in.  If you require different modular functionality than what this precompilation delivers, please build source yourself.



You MUST EDIT /usr/local/etc/proftpd.conf

• This is the main configuration file.  All server parameters are defined here.  There are how-tos, readmes and examples at the URLs above and many other sites.

• If you have a pre-existing proftpd.conf, if you click "Customize" during the main install screen, you can choose not to install the default configuration file.  Only do this if you are upgrading or replacing proftpd.

• The proftpd.conf file this package installs only allows users with local accounts to login (no anonymous logins).

• Their $HOME directory is changed to their root. 

• A valid default shell is NOT needed.  In NetInfoManager, you may set the default shell to /dev/null for any users you do NOT want logging into a shell (FTP only accounts).  You may edit /etc/ftpusers and add usernames that you do NOT want logging into FTP (shell only accounts).



You MUST EDIT /etc/inetd.conf

• Turn off FTP in System Preferences -> Sharing.  Open inetd.conf in an editor and find the line

#ftp   stream   tcp   nowait   root   /usr/libexec/tcpd   ftpd -l

and change the text in boldface to /usr/local/sbin/proftpd

• Once you are content with your proftpd.conf file, re-enable FTP in Sharing.



-----------------------------------------------------------------



There you have it, a pre-made binary for those with compiling problems, or for anyone that doesn't want compilers on their production machines. 



mneptok

[url]http://www.mneptok.com[/url]

[email]mneptok@mac.com[/email]

april 12, 2002

solo che in terminale....

Oscar:~ Skaman$ /usr/local/etc/proftpd.conf

-bash: /usr/local/etc/proftpd.conf: Permission denied

Oscar:~ Skaman$ 

sapete in particolare come disinstallarlo???

skamac.gif

iMac uCrash :D :ibook: nikonista.gif :P

Link al commento
Condividi su altri siti

/usr/local/etc/proftpd.conf

questo non e' un comando non puoi lanciarlo cosi'. quello e' un file che puoi al massimo editare con un programma come pico o nano

sudo <comando>

eseguue il comando da superutente (root)

in quel caso puoi fare

sudo pico /usr/local/etc/proftpd.conf

oppure

sudo nano /usr/local/etc/proftpd.conf

se vuoi aprire un shell di root per eseguire piu di un comando da superutente fai

sudo su

da questo momento sei superutente

se vuoi tornare utente normale

exit

ora devo andare, bye

Link al commento
Condividi su altri siti

Originally posted by dade

/usr/local/etc/proftpd.conf  

questo non e' un comando non puoi lanciarlo cosi'. quello e' un file che puoi al massimo editare con un programma come pico o nano

sudo <comando>  

eseguue il comando da superutente (root)

in quel caso puoi fare  

sudo pico /usr/local/etc/proftpd.conf

oppure  

sudo nano /usr/local/etc/proftpd.conf  

se vuoi aprire un shell di root per eseguire piu di un comando da superutente fai

sudo su

da questo momento sei superutente

se vuoi tornare utente normale

exit

ora devo andare, bye

grazie mille.....cmq nella notte mi son portato l'ibook a letto e sono riuscito a editarlo con Vim :D

cmq grazie....ora so 2 3 cose in + :P

skamac.gif

iMac uCrash :D :ibook: nikonista.gif :P

Link al commento
Condividi su altri siti

Archiviato

Questa discussione è archiviata e chiusa a future risposte.

×
×
  • Crea Nuovo...