Operating System - HP-UX
1834796 Members
3210 Online
110070 Solutions
New Discussion

Re: User changing own password HP-UX 11.23

 
Dave Andrew
New Member

User changing own password HP-UX 11.23

An attempt to change a non-privileged users' password returns the message: "audswitch: Not owner". Any suggestion on what to check?

File permissions set as follows:


-r-sr-xr-x 1 root bin /usr/bin/login
-r-sr-xr-x 1 root bin /usr/bin/passwd

Any Thoughts
11 REPLIES 11
T G Manikandan
Honored Contributor

Re: User changing own password HP-UX 11.23

what are the permissions for /sbin/passwd
James R. Ferguson
Acclaimed Contributor

Re: User changing own password HP-UX 11.23

Steven E. Protter
Exalted Contributor

Re: User changing own password HP-UX 11.23

Shalom,

I think the permissions on /etc/password have been "frakked" to use the sci-fi term for it.

This file is one of those files that is owned by super user, only can be written to by super user, but regular users can use the passwd command which has the super user bit set to update it.

compare /etc/passwd to a working system and make it the same. See that it has content in it as well.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Yashwant
Valued Contributor

Re: User changing own password HP-UX 11.23

compare and Change the 'login' and 'passwd' file permissions:


-r-sr-xr-x 1 root bin /usr/bin/login
-r-sr-xr-x 1 root bin /usr/bin/passwd
Dave Andrew
New Member

Re: User changing own password HP-UX 11.23

JRF - I have looked at the mentioned forum and the settings look to be OK hence the confusion

the settings for the sbin version of the passwd file are as follwos:

-r-s------ 1 root bin 788596 Apr 1 2005 passwd
Dave Andrew
New Member

Re: User changing own password HP-UX 11.23

SEP I have looked at the file permissions and they are set to -r-xr-xr-x in /etc for the passwd file. The one thing i did notice was that the group associated with the file was other and not bin.

Would this have bearing?
James R. Ferguson
Acclaimed Contributor

Re: User changing own password HP-UX 11.23

Hi (again) Dave:

# ls -l /etc/passwd /sbin/passwd /usr/bin/passwd
-r--r--r-- 1 root other 1452 Feb 17 08:09 /etc/passwd
-r-s------ 1 root bin 299008 Apr 28 2005 /sbin/passwd
-r-sr-xr-x 5 root bin 53248 Apr 27 2007 /usr/bin/passwd

Regards!

...JRF...
Avinash20
Honored Contributor

Re: User changing own password HP-UX 11.23

Try:
/sbin/passwd
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Dave Andrew
New Member

Re: User changing own password HP-UX 11.23

Avinash comes back as not superuser.
Avinash20
Honored Contributor

Re: User changing own password HP-UX 11.23

1. Is this a trusted server(check for /tcb directory)

2. Are you able to change the password of the users via root

"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Dave Andrew
New Member

Re: User changing own password HP-UX 11.23

Avinash

Server was not buiklt as trusted and yes you can change if logged in as root