PDA

View Full Version : Linux permissions



rajatQ2
05-11-2009, 07:54 PM
Hey Guys,
question. I have a web designer doing a site for me. I have a linux VPS.

the files that he needs to access are in this directory:
/home/webadmin/movie-cat.tv/html/app/views

and no where else. His username is "patrick" his first name. he's gonna use insecure ftp. How can i restrict him there? I was thinking symlink, group, and chmod permissions but i can't get it to work.

thanks in advance!

MrGreg
05-11-2009, 08:04 PM
What's not working?

- you've created a symlink from patrick's home folder to views
- I would probably add patrick to a new group and have that group own views, and make sure that group has rwx premissions on views
- I would also make sure patrick is NOT a member of any other groups (particularly users)
- you might be able to configure the ftp server so when patrick logs in he is automatically placed in the views directory, so you wouldn't even need the link

rajatQ2
05-16-2009, 06:55 AM
Thanks Greg. What i forgot to mention is that he'll FTP into the system. I added him to a new group, and "chroot jailed" him to his new home directory. since FTP doesn't recognize symlinks i had to mount the other directory, public, into his home dir. seems to have worked. thanks!