User with limited access to one directory


 
Thread Tools Search this Thread
Operating Systems Solaris User with limited access to one directory
# 1  
Old 11-12-2009
User with limited access to one directory

is there a way to create a user and limit him to read,write and execute only in one direcotry.
the directory is already exsist and it belongs to dba group.

i would like to make this user can't even cd to another directory or even if he can he cant do anything in the other directories.

if anyone can help me with this and with the code in doing it, i would be very great full Smilie thanks in advance
# 2  
Old 11-12-2009
this should be the default thing already.... that is.

if you create a home dir john as /home/john, make him as owner and give all permission... he will not be able to do anything with /home/tom or /home/jerry. ( make the permissions appropriately at tom & jerry )

He can manipulate anything under /home/john. are you looking for this -- read about chmod, chown.

if something else -- explain that ?
# 3  
Old 11-12-2009
what if i want to limit his access to only one directory?
# 4  
Old 11-12-2009
what you mean by only one directory ? -- only /home/john and he should not go to /home/john/Music or something else ?

If it is he can do anything with /home/john, and he should not go for /home/tom, then tom should be owner of that dir, and for others/group dont give read & execute permission.
# 5  
Old 11-12-2009
Quote:
Originally Posted by q8devilish
is there a way to create a user and limit him to read,write and execute only in one direcotry.
Although I'm unsure about what precisely your requirements are, you might achieve that by using a combination of ACLs and a restricted shell like rksh.
# 6  
Old 11-12-2009
i would like the user just to access /pcard17/trace

not his home directory

Code:
root@zfstest # df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c1t0d0s0       20G   9.8G   9.7G    51%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                    16G   1.7M    16G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
                        20G   9.8G   9.7G    51%    /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
                        20G   9.8G   9.7G    51%    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                    16G   792K    16G     1%    /tmp
swap                    16G    48K    16G     1%    /var/run
/dev/dsk/c1t0d0s6       32G    32M    31G     1%    /data
/dev/dsk/c1t1d0s0       20G   9.8G   9.7G    51%    /bkp-root
iaspool                 15G   3.6G    11G    25%    /ias
oraclepool              15G   7.2G   7.5G    50%    /oracle
pcard01pool            9.8G   1.2G   8.6G    12%    /pcard01
pcard02pool             29G   5.5G    24G    19%    /pcard02
pcard03pool             29G   5.0G    24G    18%    /pcard03
pcard04pool             29G   4.0G    25G    14%    /pcard04
pcard05pool             49G    29G    20G    60%    /pcard05
pcard06pool             49G    22G    27G    46%    /pcard06
pcard07pool             49G    25G    24G    51%    /pcard07
pcard08pool             49G    19G    30G    38%    /pcard08
pcard09pool             29G   9.5G    20G    33%    /pcard09
pcard10pool             29G   6.0G    23G    21%    /pcard10
pcard11pool             29G    11G    19G    37%    /pcard11
pcard12pool             29G   6.0G    23G    21%    /pcard12
pcard13pool             29G   2.9G    26G    11%    /pcard13
pcard14pool             29G   2.9G    26G    11%    /pcard14
pcard15pool             29G   6.0G    23G    21%    /pcard15
pcard16pool             29G   1.6G    28G     6%    /pcard16
pcard17pool             49G    14G    35G    28%    /pcard17
pcard18pool             29G   4.1G    25G    14%    /pcard18
pcard19pool             29G    22K    29G     1%    /pcard19
pcard20pool             29G   2.1G    27G     8%    /pcard20
pcardbkppool           492G   106G   387G    22%    /pcardbkp
/vol/dev/dsk/c0t0d0/sol_10_509_sparc
                       2.5G   2.5G     0K   100%    /cdrom/sol_10_509_sparc
root@zfstest # cd /pcard17/trace
root@zfstest # pwd
/pcard17/trace
root@zfstest #cd ..
root@zfstest # ls -l
total 475
drwxrwxrwx   2 ora10g   dba            2 Mar 12  2007 lost+found
drwxr-xr-x   2 root     root           8 Sep  6 13:04 oper
drwxrwxrwx   3 ora10g   dba         2518 Oct 25 14:25 trace
root@zfstest #

# 7  
Old 11-12-2009
A user denied read access to his own home directory would fail to log in to the system.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Linux sftp — how to add new user to access exist directory with write permission?

I have built a website and I can access and edit the website'files on server via the root user. The current file and directory structures are not changeable. Now I am hiring a webpage designer to help me re-design some pages, I am going to let the designer edit the files directly on the server. So... (5 Replies)
Discussion started by: uwo-g-xw
5 Replies

2. Solaris

Limit bash/sh user's access to a specific directory

Hello Team, I have Solaris 10 u6 I have a user test1 using bash that belong to the group staff. I would like to restrict this user to navigate only in his home directory and his subfolders but not not move out to other directories. How can I do it ? Thanks in advance (1 Reply)
Discussion started by: csierra
1 Replies

3. Solaris

Limit FTP user's access to a specific directory

Hi, I have searched "Limit FTP user's access to a specific directory" subject for 3 days. I found proftp and vsftp but i couldn't compile and install. Is there any idea. Please suggest. (6 Replies)
Discussion started by: hamurd
6 Replies

4. UNIX for Advanced & Expert Users

new userid with limited access

Hi, I want to create a user using useradd -m test. But my requirement is he should not change his directory from Home directory. How can I restric the user not to change his directory from his home dir? Thanks, Suresh Double Post (0 Replies)
Discussion started by: suresh3566
0 Replies

5. Solaris

create user with RWX access to a specific directory in Solaris 10

I need to create a user account for a developer that will allow him rwx access to all resources in a directory. How can I do that? Thanks (5 Replies)
Discussion started by: gsander
5 Replies

6. UNIX for Dummies Questions & Answers

user with limited access

dear guys, sorry for asking a noob :p question, tried to search the forum for an answer but couldn't find one, i am running solaris 10 and i would like to create a user with limited access to view only one directory, the directory already exist, is this possible:confused:? thanks and regards (4 Replies)
Discussion started by: q8devilish
4 Replies

7. UNIX for Advanced & Expert Users

Restrict FTP access to a single directory for only one user.

Hi All, It will be very great if you can help me in this issue. Thanks in advance. I need to enable FTP on a solaris9 server. I need to create a new user some "xxxxxx" and he can only FTP the files to and from between /tftpboot directory and network devices. Other users should not... (8 Replies)
Discussion started by: santhoshkumar_d
8 Replies

8. Solaris

How to create a new ftp user account with limited access..?

Hi All, I'm using solaris 2.8, and I want create a new ftp user account with the following restrictions: - Have only ftp access, no telnet or rlogin - Have restricted access to its home directory example /export/home/newuser - Deny access to any other directory. Thanks for your help, ... (6 Replies)
Discussion started by: Jeremy3
6 Replies
Login or Register to Ask a Question