![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can't create users in /home | sdspawankumar | SUN Solaris | 3 | 02-04-2008 09:32 AM |
| Home dir for users | qfwfq | HP-UX | 2 | 01-12-2007 10:18 AM |
| Profiles for users without home directory | naina | UNIX for Dummies Questions & Answers | 3 | 02-05-2006 12:41 AM |
| Monitor which users enter my home directory | mnpradeep | High Level Programming | 1 | 03-21-2002 01:08 AM |
| Restrict users to ther home directory | alfabetman | UNIX for Dummies Questions & Answers | 1 | 10-04-2001 11:31 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Home Directory Jail for Users
Hi,
I am looking for a shell script (or any other way), that puts a user in a home directory jail. So for example, I have a user named richard and I don't want him wandering outside /usr/users/richard. I don't want him to cd to anywhere including cd .. Somebody said you can do that with chroot, but I looked it up on the man pages and it says it is used to change the root directory. Any help will be greatly appreciated. Thanks .Michael |
| Forum Sponsor | ||
|
|
|
|||
|
Thanks for the reply.
I want to avoid chroot, as I don't have much experience with UNIX sysadmin and chroot sounds like the kinda thing that if you get wrong, you quietly pack up your stuff, take a cab to the airport and board the first avail flight I use tru64 unix --- to be honest I think I'll use Access Control Lists. With them I can restrict access to areas I want. I can do that on the group level as well, so no need to do it for each user individually. Thanks anyway. M |
|
||||
|
what's about rksh?
Code:
$ rksh $ cd .. rksh: cd: restricted $ cd / rksh: cd: restricted $ /usr/sbin/ifconfig rksh: /usr/sbin/ifconfig: restricted $ still it's not perfect, but a good way to start... regards pressy |
||||
| Google UNIX.COM |