![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Change directory command (cd) | c00kie88 | Shell Programming and Scripting | 21 | 07-11-2008 10:01 AM |
| Change Directory | vskr72 | UNIX for Dummies Questions & Answers | 2 | 05-26-2008 02:50 AM |
| Change to a new working directory... | jagannatha | UNIX for Dummies Questions & Answers | 5 | 06-29-2005 10:38 PM |
| change directory | mkan | Shell Programming and Scripting | 2 | 02-26-2005 04:55 PM |
| change directory | vadivel | Shell Programming and Scripting | 1 | 06-10-2002 10:12 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Change directory command (cd)
I want to limit the directories that a user can
access. When this users logs in, I do not want them to cd to any directory but those in their $HOME. In other words: login: pwd: /home/user cd / -- user tries to cd to root directory. pwd /home/user -- user is still in home directory but can cd to subdirectories in their $HOME cd /home/user/dir1 pwd /home/user/dir1 Any help would be greatly appreciated. Oscarr. |
|
|||||
|
Changing the permissions on system directories, (especially /) will screw up your system very fast.
Many unix commands depend on system directories being accessable. Unix is not intended to have system directories locked away from users. The only time that I have done this was to establish a super limited account for communications engineers to use to prove that our system was accessable. They could log in and run the echo command. And they could ise "exit" to log off. And that was it. If you want an account that tight, you can use chroot. But it won't be able to do much else. Also, whenever people want something like this, they seem to focus on the cd command. Doing something like: cd /etc cat passwd is not very much different from: cat /etc/passwd |
![]() |
| Bookmarks |
| Tags |
| unix commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|