Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Server FTP da user e non da root [risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Sun May 22, 2005 4:10 pm    Post subject: Server FTP da user e non da root [risolto] Reply with quote

Qualcuno di voi sa se si può fare? Volevo mettere su un server ftp per condividere qualche file con gli amici quando c'è bisogno, ma non volevo loggarmi da root per farlo. Ho installato proftpd e gproftpd come GUI, e per come l'ho configurato funziona perfettamente da root. da user non riesco a farlo andare (penso per un problema di permessi)

Code:
$ /usr/sbin/proftpd
 - notice: unable to listen to local socket: Address already in use
localhost - PRIVS_ROOT: unable to seteuid(): Operation not permitted
localhost - PRIVS_ROOT: unable to setegid(): Operation not permitted
localhost - PRIVS_RELINQUISH: unable to seteuid(PR_ROOT_UID): Operation not permitted
localhost - PRIVS_RELINQUISH: unable to setegid(session.gid): Operation not permitted
localhost - PRIVS_RELINQUISH: unable to seteuid(session.uid): Operation not permitted
localhost - mod_delay/0.4: error opening DelayTable '/var/run/proftpd/proftpd.delay': Operation not permitted
localhost - PRIVS_ROOT: unable to seteuid(): Operation not permitted
localhost - PRIVS_ROOT: unable to setegid(): Operation not permitted
localhost - PRIVS_RELINQUISH: unable to seteuid(PR_ROOT_UID): Operation not permitted
localhost - PRIVS_RELINQUISH: unable to setegid(session.gid): Operation not permitted
localhost - PRIVS_RELINQUISH: unable to seteuid(session.uid): Operation not permitted
localhost - mod_tls/2.0.7: unable to use RSA certificate key in '/etc/gproftpd/gproftpd.pem', exiting


Avete qualche dritta?
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum


Last edited by Onip on Sun May 22, 2005 5:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
koma
Advocate
Advocate


Joined: 06 Jun 2003
Posts: 2702
Location: Italy

PostPosted: Sun May 22, 2005 4:16 pm    Post subject: Reply with quote

Prova a usare sudo!
_________________
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Sun May 22, 2005 4:20 pm    Post subject: Reply with quote

a quello ci avevo già pensato, ma preferirei evitarlo, se possibile naturalmente
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
koma
Advocate
Advocate


Joined: 06 Jun 2003
Posts: 2702
Location: Italy

PostPosted: Sun May 22, 2005 4:25 pm    Post subject: Reply with quote

perchè? fai un alias e setti nel dudoers che puoi lanciare quell'eseguibile senza password,
alias proftd = sudo /usr/bin/proftpd
_________________
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Sun May 22, 2005 5:29 pm    Post subject: Reply with quote

alla fine ho usato sudo, degli alias e un paio di scrippettini e sembra funzionare bene. grazie
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Sun May 22, 2005 5:34 pm    Post subject: Reply with quote

Un server FTP hai la necessità di aprire delle porte < 1024 e questo in un sistema Unix è permesso solo a root.

Le possibili soluzioni che si presentano sono quindi:

  • usi gli script sotto /etc/init.d (da root)
  • usi sudo

_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum