Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
SUSE / openSUSE This Forum is for the discussion of Suse Linux.


  Search this Thread
Old 09-15-2013, 08:34 PM   #1
Registered: Nov 2011
Posts: 66

Rep: Reputation: Disabled
Sudo access for a group of users

Ok I am using a suse linux distribution
Linux linux-s1tw #1 SMP 2011-02-21 10:34:10 +0100 i686 athlon i386 GNU/Linux
I am trying to allow a group of users to change passwords on the system only and they both work but sometimes the sudo doesn't work and I have to reset the users password and then it works see below

mtolbert@linux-s1tw:~> sudo -l
mtolbert's password:
Sorry, try again.
Then when I change the password it works but then it after a little while I have to change the password again.

Line from /etc/sudoers file

%techteam ALL=(ALL) PASSWD: /usr/bin/passwd
Defaults timestamp_timeout=1
Output from groups command

groups mtolbert
mtolbert : techteam
Old 09-16-2013, 10:29 AM   #2
Senior Member
Registered: Mar 2011
Location: Milford, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 2,875
Blog Entries: 9

Rep: Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951
What are the permissions on /usr/bin/passwd? They should be 755 with the suid bit set so it shows as rwsr-xr-x.

If passwd isn't set like that, as root do the following:

chmod 4755 passwd
This will make it so that the normal users can execute passwd, but not delete it, and when they execute it, they will have root privileges so that they can change their passwords properly. This is the normal way it is done unless you employ a script to check the form and syntax of passwords to not allow them to create too simple ones.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing users home directory with sudo access..How to block this ? sujithspillai90 Linux - Newbie 1 04-20-2012 08:25 AM
Script needed to get users with sudo access mikeb75 Linux - Server 1 12-01-2009 01:21 PM
SSH access problems: Can only allow users SSH access by adding to root group dhupke Slackware 10 12-21-2008 10:48 AM
Security with regards to wheel group, and sudo users. jdaw Linux - Security 5 10-20-2008 08:29 AM

All times are GMT -5. The time now is 09:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration