LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   ftp acct/permissions (https://www.linuxquestions.org/questions/red-hat-31/ftp-acct-permissions-118026/)

zoa artcc chief 11-19-2003 09:53 PM

ftp acct/permissions
 
i'm running linux on my VPS server. using WEBppliance Pro3.5.20
I am trying to set up ftp accts for my website administrators, using the control panel i can set up the user accounts but it will not allow me to give them certain permissions like ex. user 1 only allowed access to /var/www/html/staff and nothing below that
there has to be a way to do this through ssl I have FULL root access to my box i tried this command
[root@deep ] /# useradd -d /home/var/www/html/staff/ -s /dev/null ftpadmin > /dev/null 2>&1
[root@deep ] /# passwd ftpadmin

root@deep ] /# vi /etc/shells



/bin/bash
/bin/sh
/bin/ash
/bin/bsh
/bin/tcsh
/bin/csh
/dev/null

root@deep ] /# vi /etc/passwd

ftpadmin:x:502:502::/home/var/www/html/staff/./ftpadmin/:/dev/null

this totaly messed up my control panel :eek: I did a restore of my server and its back to normal. however I'm still not sure how to add a user to my ftp server with permissions "only to access a certain directory"

pls help

trickykid 11-20-2003 11:08 AM

chroot is what your looking for and you can also not give them shell access by adding something like:

/bin/false

to your /etc/shells file. That's if you only want them to be jailed to a particular directory and not have any other access to the system with no shell access, etc.


All times are GMT -5. The time now is 01:17 PM.