Quote:
Originally posted by neet
Hi,
I need to write a script so that if certain users login they can only have access to one directory and to see the end of a log file. I'm new to Unix and don't know where to start. Any help will be appreciated.
Thanks.
|
If you are using solaris, try modifying the file /etc/profile
The statements in this file will be executed as every user logs in. You can trap the current user name inside this script and perform actions based on that.