chmod command in SunOS

Hi Bros,

I have a question want to receive your help.

On SunOS server. I have 1 file in /etc. mode of file is "read only". I've used chmod 777 commmand to change mode of that file. firstly, it's ok. but about 3 mins after that. The mode of that file rollback to "read only". I don't know how. please help me to fix that.
Thank you very much!

which file is it?

That is "passwd" file. I want to change mode shell of 1 user in this file. dir: /etc/passwd

Hi,

Use the command "usermod -s /new/shellname username", that's the correct way of doing this.

Dave

The /etc/password file should stay read-only. There is no point changing this permission as the only user allowed to modify /etc/password is root and read-only restrictions are not enforced against root.