LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-05-2015, 10:02 PM   #1
brjohnsmith
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Rep: Reputation: Disabled
su - userX (allow anyone to issue su command to userX) - nopasswd


Hi,
I have several users that belong to a group - group1. I would like to allow all users from group1 in using - su command and to the user5, for exemple, that also belong to group1, but no password is required.
How can I define it on sudoers file?
this user5 is a normal user, it is not an admin, and it cannot su to root.
the user5 will execute a script after this su, and then it must return to user that called it.
tks
 
Old 04-06-2015, 06:23 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
Have you studied the sudoers man page?
 
  


Reply



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
[SOLVED] Showing "bash-4.1$" prompt instead of "[userX@hostname ~]" tonmoy Linux - Server 2 07-04-2013 08:15 AM
sudo -u aUser nopasswd PoleStar Linux - Newbie 1 08-04-2010 05:08 PM
[SOLVED] inteconnect of "userx" & "/home/userx" bluegospel Linux - Newbie 1 06-20-2010 12:34 PM
sudo NOPASSWD issue lensem Linux - Software 5 11-25-2009 05:08 PM
SSH nopasswd login UltraSoul Solaris / OpenSolaris 3 06-20-2006 12:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:51 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration