Computing.Net > Forums > Unix > Restrict Unix User to a Single Directory

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Restrict Unix User to a Single Directory

Reply to Message Icon

Name: Ramesh
Date: July 30, 2002 at 01:51:41 Pacific
Comment:

Hi ,

I want a unix(Unix Ware 7.1.1)user not to roam around in any of the directories other than his home directory . for which i did the following things

Created an user for him with the home directory , i took the ownesrship of the file as root and made it with read permissions and removed the path all the executables from his directory and copied the needed excuteble in his directory , but still with cd command which is build in shell he is able to come out of the directory which is the main thing i dont want to happen ? Any help ?

Thanks
Ramesh




Sponsored Link
Ads by Google

Response Number 1
Name: PaulS
Date: July 30, 2002 at 06:54:56 Pacific
Reply:

You may want to consider providing a restricted shell for the user. Or see if the shell your giving this user supports the -r option (ksh has a -r option). That would prevent a 'cd' command.


0

Response Number 2
Name: ramesh
Date: July 30, 2002 at 07:46:27 Pacific
Reply:

hi ,

i did solved my requirement , thanks alot

Ramesh


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Restrict Unix User to a Single Directory

Printing from a Unix workstation to a Windows 98 shared printer. www.computing.net/answers/unix/printing-from-a-unix-workstation-to-a-windows-98-shared-printer/192.html

FTP from SCO UNIX server to a PC www.computing.net/answers/unix/ftp-from-sco-unix-server-to-a-pc/718.html

Map a sco unix folder to a win98 pc www.computing.net/answers/unix/map-a-sco-unix-folder-to-a-win98-pc/3682.html