[Scottish] Help with SU

Phillip Bennett phillip at mve.com
Fri Mar 30 16:50:08 BST 2007


Hi Kyle,

Yes, I removed winbind from the nsswitch.conf.  That was one of the first
places I checked.  I have found a post on another error I recieved and have
found that something has reset the permissions on the su executable.  I
actually thought I'd have tried to su to another valid user, but evidently I
hadn't.  I thought I'd try it again today and I got another error (su:
cannot set groups: Operation not permitted)

Apparently when the permissinos are set as : rwxr-xr-x  root   named  60480
Apr 10  2006 /bin/su it's not a good thing.

Goodness knows what the hell has happened, but I set the permissions back
to: -rwsr-xr-x  1 root root 60480 Apr 10  2006 /bin/su

And it's working again.

Thanks for all the help though.  It has been a very weird problem.  With
random permissions like this though, I think it might be time to rebuild.
Has anyone seen this type of thing before?

Phil.

-----Original Message-----
From: scottish-bounces at mailman.lug.org.uk
[mailto:scottish-bounces at mailman.lug.org.uk] On Behalf Of Kyle Gordon
Sent: 30 March 2007 16:01
To: SLUG-list
Subject: Re: [Scottish] Help with SU

Have you removed winbindd from nsswitch.conf?

Kyle

Phillip Bennett wrote:
> Colin,
>
> As much as it appears I'm an idiot, yes I have logged in on the 
> console successfully.  I also changed the root password more than once 
> to make sure it was not 'forgotten'.
>
> Thanks so far,
> Phil.
>
> PS: here is the su pam file for mark:
>
> #%PAM-1.0
> auth       sufficient   /lib/security/$ISA/pam_rootok.so
> # Uncomment the following line to implicitly trust users in the "wheel"
> group.
> #auth       sufficient   /lib/security/$ISA/pam_wheel.so trust use_uid
> # Uncomment the following line to require a user to be in the "wheel"
group.
> #auth       required     /lib/security/$ISA/pam_wheel.so use_uid
> auth       required     /lib/security/$ISA/pam_stack.so
service=system-auth
> account    required     /lib/security/$ISA/pam_stack.so
service=system-auth
> password   required     /lib/security/$ISA/pam_stack.so
service=system-auth
> # pam_selinux.so close must be first session rule
> session    required     /lib/security/$ISA/pam_selinux.so close
> session    required     /lib/security/$ISA/pam_stack.so
service=system-auth
> # pam_selinux.so open and pam_xauth must be last two session rules
> session    required     /lib/security/$ISA/pam_selinux.so open
> session    optional     /lib/security/$ISA/pam_xauth.so
>
>
> -----Original Message-----
> From: scottish-bounces at mailman.lug.org.uk
> [mailto:scottish-bounces at mailman.lug.org.uk] On Behalf Of Colin 
> McKinnon
> Sent: 30 March 2007 13:34
> To: phillip at mve.com; SLUG-list
> Subject: Re: [Scottish] Help with SU
>
> On Thursday 29 March 2007 14:47, Phillip Bennett wrote:
> <snip elaborate background>
>   
>> However, now I can't su to root.  It gives me a 'wrong password' error.
>> Fortunately, I can still use 'sudo su -' to get root.
>>
>>     
>
> What makes you think you've not just forgotten the password? Have you 
> tried logging in on the console?
>
> C.
>
>
> _______________________________________________
> Scottish mailing list
> Scottish at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/scottish
>
>
> _______________________________________________
> Scottish mailing list
> Scottish at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/scottish
>
>   


_______________________________________________
Scottish mailing list
Scottish at mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/scottish




More information about the Scottish mailing list