Unable to do su - for a application user (337 Views)
Reply
Occasional Advisor
rock_singh
Posts: 12
Registered: ‎12-07-2011
Message 1 of 4 (337 Views)
Accepted Solution

Unable to do su - for a application user

Hi,

 

It is regarding one application user who is unable to do the su - app_oaps

 

root@stowe /usr/lbin# /usr/lbin/getprpw app_oaps
uid=35059, bootpw=NO, audid=127, audflg=1, mintm=0, maxpwln=-1, exptm=0, lftm=0, spwchg=Tue Nov 29 21:59:16 2011, upwchg=Thu Aug 19 14:19:40 2010, acctexp=-1, llog=-1, expwarn=0, usrpick=DFT, syspnpw=DFT, rstrpw=DFT, nullpw=DFT, admnum=-1, syschpw=DFT, sysltpw=DFT, timeod=-1, slogint=Tue Dec 13 17:12:59 2011, ulogint=Tue Dec 13 15:59:35 2011, sloginy=pts/te, culogin=-1, uloginy=pts/te, umaxlntr=-1, alock=NO, lockout=0000000

 

I have reset the passwd also but still unable to do su - app_oaps.

 

 

root@stowe /usr/lbin# cat /etc/sudoers
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
# Failure to use 'visudo' may result in syntax or file permission errors
# that prevent sudo from running.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification

# Runas alias specification

# User privilege specification
root    ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
# %wheel        ALL=(ALL) ALL

# Same thing without a password
# %wheel        ALL=(ALL) NOPASSWD: ALL

# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now
### START CentrifyDC group policy generated machine settings START ###
### ### Do not edit directly, this block might be gone anytime ### ###
#Default Settings
Defaults lecture=always, tty_tickets, !insults, env_reset, always_set_home, timestamp_timeout=0, lecture_file=/etc/sudo_lecture

# User alias specification for root access
User_Alias LOCALROOTUSERS=%se,%setemp,%sezone

# User privilege specification
LOCALROOTUSERS ALL=(ALL) /bin/su -


###  END  CentrifyDC group policy generated machine settings  END  ###
root@stowe /usr/lbin#

 

 

What could be the possible issue?

 

 

Honored Contributor
Patrick Wallek
Posts: 13,776
Registered: ‎06-21-2000
Message 2 of 4 (334 Views)

Re: Unable to do su - for a application user

So what happens when you try to do the 'su - app_oaps'?  Do you get an error?

 

You posted the sudoers file as well.  Are you expecting sudo to be magically invoked?  If you want to use sudo you need to do:

 

# sudo su - app_oaps

 

You then need the specify YOUR password (NOT the app_oaps password).

Occasional Advisor
rock_singh
Posts: 12
Registered: ‎12-07-2011
Message 3 of 4 (332 Views)

Re: Unable to do su - for a application user

I forgot to put the error. I know that i w'nt maically invoked.we have to do sudo su - app_oaps
Trusted Contributor
singh sanjeev
Posts: 217
Registered: ‎11-07-2007
Message 4 of 4 (323 Views)

Re: Unable to do su - for a application user

what is the error you getting ??
Sanjeev Singh
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.