Hi,

 u can remove the read and excecute permission of the user in /etc/,
/home/xyz etc.
 By default a normal user could not enter into other users home
directory. If u want to protect other directories from this user. you
can use "chmod" command to remove the read and exceute permission.

Read the help of chmod command

 Conisder an exmple 

  User name ---- >>> thomas 
 Directory to Protect >>> /etc
 
 First check the owner and group of /etc directory use "ls -l" 
command. For more help use man page of ls command

 let owner is root and group is X . Use command chmod 750 /etc . This
block all users except root and members in X group. U can set thomas
is not a member of X.

 
On 7/7/05, thomas <[EMAIL PROTECTED]> wrote:
> Dear All
> A user thomas has its  home directory set to /home/thomas.
> 
> We have requirement to restrict the user so that he cannot to the cd
> to other directories like /etc /home/xyz but can do the cd in
> subdirectories of his home directories like /home/thomas/xyz_dir and
> /home/thomas/abc_dir.
> 
> If there is no direct way, can anyone help me to do this by using shell 
> scripts?
> TIA
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&opclick
> _______________________________________________
> linux-india-help mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/linux-india-help
> 


-- 
Shijithlal L V
Fischer Systems India
224 NILA Technopark
Trivandrum 695581
INDIA

Ph:  91 471 2527427
Cell: 91 9349100636
email: [EMAIL PROTECTED],[EMAIL PROTECTED]


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
linux-india-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to