1752583 Members
5026 Online
108788 Solutions
New Discussion юеВ

User Restriction

 
SOLVED
Go to solution
Victor Salvador_1
Occasional Contributor

User Restriction

I created a user named "test", I need that this user cannot back any directory from your default "path" in /home/test/. If it is possible in TELNET and FTP.
2 REPLIES 2
MiQUET Pascal
Occasional Advisor
Solution

Re: User Restriction

according to telnet you may use the rsh (as restricted shell) to avoid some commands. But I do believe that the cd command is not allowed even if there is some "test" diretories in his home.
You should managed this kind of actions with Unix right access, and put the test user into a specific restricted group.

For the ftp, you may use the /etc/ftpaccess to set restriction.
man ftpaccess or man ftpd should gives you more informations.
Hope that h
Hal Rottenberg
Frequent Advisor

Re: User Restriction

What you want to look into is "chroot". If you chroot a process, then the directory you specify appears as the root for that user.

There is a lot written about this subject, but this seemed a good article to start with.

http://www.linuxsecurity.com/feature_stories/feature_story-99.html

After reading that go to Google and Linuxdoc.org for specifics.

-hal
If at first you don't succeed, then skydiving isn't for you.