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. |
It's a recreation of an account (different password) that got wiped out when the machine got hacked.
If you don't mind me asking, but this isn't that hacked box but then patched up (that is without repartitioning, reformatting and reinstalling from scratch), right? I am having trouble restricting an account to a specific directory on a Madrake Linux machine for sftp access. Any reason why you don't want to use Scponly or Rssh? |
All times are GMT -5. The time now is 06:01 PM. |