Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Simple Permissions Problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ewtrowbr
Apprentice
Apprentice


Joined: 08 May 2004
Posts: 153
Location: Columbus, OH

PostPosted: Sat Aug 21, 2004 5:05 am    Post subject: Simple Permissions Problem Reply with quote

I have an anonymous ftp server. I would like to offer authenticated users the ability to upload files to the anonymous ftp server. Random anon-ftp users will not have this option.

What I have done is to put the anon root directory in the 'users' group. Users are now able to upload files to the directory.

Is this the correct way to do this? The anon root directory used to be a member or group 'root' and I changed it to 'users'. Is there a better way to do this? Do I have any security exposure?

please advise,
erich
Back to top
View user's profile Send private message
gnuageux
Veteran
Veteran


Joined: 17 Apr 2004
Posts: 1201

PostPosted: Sat Aug 21, 2004 7:03 am    Post subject: Reply with quote

Quote:
I have an anonymous ftp server. I would like to offer authenticated users the ability to upload files to the anonymous ftp server

Isnt this a bit contradicting? :)
You mean you have an ftp server that offers anonymous logins? Why not just create a incoming directory, and give anonymous write permissions to that dir?
_________________
The realOTW: http://forums.realotw.org/index.php

Registered Linux user#364538
Back to top
View user's profile Send private message
ewtrowbr
Apprentice
Apprentice


Joined: 08 May 2004
Posts: 153
Location: Columbus, OH

PostPosted: Sat Aug 21, 2004 10:59 pm    Post subject: Reply with quote

sry... allow me to clarify.

There are several shell users on the box. These users are not in wheel, and do not have the root password. I would like these users to be able to copy files into /home/ftp, which is the anonymous / directory.

vsftp installed /home/ftp as 'chown root:root'. I changed this to 'chown root:users'. Since the other users on the box are 'usermod -G users', they can cp and mv files into the anonymous /.

My question is: Is there a better way to do this? Am I configuring myself into a security problem?

thanks in advance,
e
Back to top
View user's profile Send private message
gnuageux
Veteran
Veteran


Joined: 17 Apr 2004
Posts: 1201

PostPosted: Wed Aug 25, 2004 6:12 am    Post subject: Reply with quote

Sound ok actually. Sounds to me like all you did was give users write permissions to the ftp services' root directory, not your actual root. An easy test would be ftp in as anony. cd around and see what directories you can write to. Cumbersome, but easy :)
_________________
The realOTW: http://forums.realotw.org/index.php

Registered Linux user#364538
Back to top
View user's profile Send private message
ewtrowbr
Apprentice
Apprentice


Joined: 08 May 2004
Posts: 153
Location: Columbus, OH

PostPosted: Wed Aug 25, 2004 2:40 pm    Post subject: Reply with quote

Thank you for your input. I tried your suggestion, and it seemed to work as I intend.

thanks again,
erich
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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