PDA

View Full Version : chmod permission file /etc/passwd



dangchung
2012-03-01, 04:24 PM
Hi all,
Pls help me. In SGSN E*******, I have a follow file /etc/passw:

-r--r--r-- 1 root sys 2165 Mar 1 09:45 passwd
when i chmod 777 passwd then file is
-rwxrwxrwx 1 root sys 2165 Mar 1 09:45 passwd
but a time later file auto rollback :

-r--r--r-- 1 root sys 2165 Mar 1 09:45 passwd

I don't know why. Have I kill process or call any process ?

Please help me.

Thank so much!

jackkarpar
2012-03-02, 12:00 AM
hi dangchung, first i think /etc/passw is a security sensitive file that you should never change it's permission to 777. second for your question, i think e******* have implemented some security infrastructure which prevents doing that either intentionally or unintentionally.
.

Hi all,
Pls help me. In SGSN E*******, I have a follow file /etc/passw:

-r--r--r-- 1 root sys 2165 Mar 1 09:45 passwd
when i chmod 777 passwd then file is
-rwxrwxrwx 1 root sys 2165 Mar 1 09:45 passwd
but a time later file auto rollback :

-r--r--r-- 1 root sys 2165 Mar 1 09:45 passwd

I don't know why. Have I kill process or call any process ?

Please help me.

Thank so much!

dangchung
2012-03-02, 11:31 AM
Hi jackkarpa (http://www.finetopix.com/member.php?24975-jackkarpar)r, thanks for reply. I need chmod this file in short time to edit my user mode login shell. It is tcsh shell and i want to modify to bash shell. Now i can modify it use command usermod but i have problem again :). after modify mode login shel, i login into my system with this user, but after a time so short, user can't login again ( system notify: login incorrect). I don't know why, can you help me?

Thanks!




hi dangchung, first i think /etc/passw is a security sensitive file that you should never change it's permission to 777. second for your question, i think e******* have implemented some security infrastructure which prevents doing that either intentionally or unintentionally.
.

quachthanhhung
2012-03-02, 12:27 PM
I dangchung,
You can try command : chsh

dangchung
2012-03-02, 12:55 PM
Thanks quachthanhhung
In my system, your command is not support. my system use SUNOS 5.9. quanhthanhhung, do you live in vietnam? :)




I dangchung,
You can try command : chsh

quachthanhhung
2012-03-02, 02:06 PM
Hi dangchung, I live in VietNam, I'm working in can tho city,and you?
You can try:
#SHELL=/bin/bash
#exec $SHELL

dangchung
2012-03-02, 05:09 PM
Thanks quachthanhhung,
I have modified mode shell login by command usernod.Now everything is ok. I am working in Ho Chi Minh city :). If you go to sai gon, i would like to invite you coffee :). Thanks for reply!


Hi dangchung, I live in VietNam, I'm working in can tho city,and you?
You can try:
#SHELL=/bin/bash
#exec $SHELL