1752607 Members
4861 Online
108788 Solutions
New Discussion юеВ

Userid

 
Cathy Arora
Frequent Advisor

Userid

Hi all;
I created a userid. user can create new files and save etc but can not change .profile file.
umask is 0.
as you can tell new to this area.
I tried reading and followed useradd instructions.
Your help is appreciated.
Thanks in advance.
raj
4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: Userid

What are the permissions on the users .profile file? Is it owned by the user or by another id, maybe root?

You first need to make sure the permissions on the .profile file are such that the user is allowed to modify it.
RAC_1
Honored Contributor

Re: Userid

umask defines the permissions that are applicable to files that are created.

With umask 0 if you create the file everyone will have read/write access to the file

Check the permissions on .profile file.

ll file.

There is no substitute to HARDWORK
A. Clay Stephenson
Acclaimed Contributor

Re: Userid

First of all a umask of 000 is dangerous and should probably be set to 022 or at worst 002 BUT that is not your problem.

Cd to the user's home directory and do an ls -la. I suspect that the permissions of .profile are either too restrictive or (more likely the file is owned by another user -- possibly root).

I would do this:

chown myuser:users .profile
(where myuser:users is the desired user:group of this user)
chmod 750 .profile

If it ain't broke, I can fix that.
Cathy Arora
Frequent Advisor

Re: Userid

user wanted to change umask to 022 but she can not edit .profile because permissions are read only.
what is the procedure to proerly create new user?
Once i created userid with useradd
I am supposed to give rwx permission to that user for his/her home directory.
Thanks again;
raj