1832763 Members
3070 Online
110045 Solutions
New Discussion

Creating a User

 
Daniel Wajsman
Contributor

Creating a User

Hello.
What do I have to do to create a read-only profile user.I cant remember the command.
Thanks
be yourself
3 REPLIES 3
Francois Bariselle_3
Regular Advisor

Re: Creating a User

Hi,

Create a user, and change the permissions of the .profile to read only.

Frank.
Fais la ...
Jupiracy
Occasional Advisor

Re: Creating a User

after create user, you can use the follwing command.

chmod 444 /home/name_user/.profile

use chown for change owner of .profile
Deepak Extross
Honored Contributor

Re: Creating a User

Remember that since the .profile exists in the users home directory, the user can always replace the .profile with his own!!
A better way to do this would be to set the environment variables in the /etc/profile as READONLY variables, so that the user's .profile cannot overwrite them.