Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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