user acess spacific to a directory using bash how to
Hi ! Linux expert
I am using redhat 8. I have setup nis Client and Server.
In /etc/profile (/etc/bashrc) how do I let a specific user access to a specific directory only everytime when he login with his login name.
For example,
User can access to his directory on any client machines in the network. Their access right (to access the directory) is depend on the user login name or UID. user_sales can only access to marketing directory. whereas, User_casher can only access to accouting directory.
I have setup the following in my nis server to make it available to other clients to share.
etc/exports
/home/accounting
/home/marketing
How can I write a program in /etc/profile (/etc/bash) to let user access his directory when he login. I am new to linux programming, I am trying to pick up along the way.
Appreciate if anyone can help.
Regards,
x2000koh
Last edited by x2000koh; 07-21-2003 at 01:21 AM.
|