Trouble restricting account
I am having trouble restricting an account to a specific directory on a Madrake Linux machine for sftp access. I've done this before successfully but for some reason it isn't working this time.
In the directory that is to be the root directory for this user I have a bin directory, a lib directory and an etc directory. The following files are in each.
etc rwxr-xr-x owner: root group: root
passwd* rwxr----- owner: root group: daemon
group* rwxr----- owner: root group: daemon
bin rwxr-xr-x owner: root group: root
ls* --x--x--x owner: root group: bin
mkdir* --x--x--x owner: root group: bin
rmdir* --x--x--x owner: root group: bin
tar* --x--x--x owner: root group: bin
lib rwxr-xr-x owner: root group: root
ld-2.2.5.so* rwxr-xr-x owner root group: root
libc-2.2.5.so* rwxr-xr-x owner root group: root
libtermcap.so.2*rwxr-xr-x owner root group: root
ld-linux.so.2* rwxr-xr-x owner root group: root
libc.so.6* rwxr-xr-x owner root group: root
The passwd file looks like this
testUser:x:87:105::/var/www/htdocs/directoryofsite/downloads/./:/bin/ftponly
Am i missing anything? I created this account using useradd, usermod and passwd. It's a recreation of an account (different password) that got wiped out when the machine got hacked. I set the uid and gid using useradd but the passwd file existed with the old account. Still everything should be the same.
Last edited by hammer65; 01-10-2006 at 09:56 AM.
|