Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

How to restrict user to a particular directory?

$
0
0
hi,

I want to restrict some user access to only 1 directory (including all sub-directories/files in it).
can you please explain me, how can we do this?


example;
Code:

Filesystem    GB blocks      Used      Free %Used Mounted on
/dev/hd4          2.61      1.02      1.59  40% /
/dev/hd2          9.45      4.71      4.74  50% /usr
/dev/hd9var        2.42      0.57      1.85  24% /var
/dev/hd3          5.00      0.00      5.00    1% /tmp
/dev/hd1          0.72      0.02      0.70    3% /home
/dev/hd11admin      0.12      0.00      0.12    1% /admin
/proc                -        -        -    -  /proc
/dev/hd10opt      3.05      0.36      2.69  12% /opt
/dev/newlv1        0.72      0.02      0.70    3% /abc1

If i create a USER (aixuser1) on AIX, they should be able to see everyting along with /abc1.

I want aixuser1 to see only the "/abc1" directory. And they should not access other directories except /tmp & /abc1.

Viewing all articles
Browse latest Browse all 16232

Trending Articles