LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 09-15-2013, 07:34 PM   #1
slufoot80
Member
 
Registered: Nov 2011
Posts: 60

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


Ok I am using a suse linux distribution
Code:
Linux linux-s1tw 2.6.37.1-1.2-default #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

Code:
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

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

Code:
groups mtolbert
mtolbert : techteam
 
Old 09-16-2013, 09:29 AM   #2
rtmistler
Member
 
Registered: Mar 2011
Location: Milford, MA. USA
Distribution: MontaVista, Ubuntu, MINT
Posts: 964
Blog Entries: 7

Rep: Reputation: 443Reputation: 443Reputation: 443Reputation: 443Reputation: 443
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:

Code:
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.
 
  


Reply


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 07:25 AM
Script needed to get users with sudo access mikeb75 Linux - Server 1 12-01-2009 12:21 PM
SSH access problems: Can only allow users SSH access by adding to root group dhupke Slackware 10 12-21-2008 09:48 AM
Security with regards to wheel group, and sudo users. jdaw Linux - Security 5 10-20-2008 07:29 AM


All times are GMT -5. The time now is 05:18 AM.

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