LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-19-2012, 11:52 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,129

Rep: Reputation: 30
su user


I would like to have a special user that can su all general user , but this special user do not have other root permission but only can do su , is that possible to have such user ?


thanks
 
Old 11-20-2012, 12:32 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,223

Rep: Reputation: 232Reputation: 232Reputation: 232
You can do it out of any normal $USER so long as he knows the passwd of all other regular users to whom he shall su to. When this su-ing user attempts to su to root the password thereto he must not know, so that he cannot obtain root user privilege; also, this su-ing regular user must have NO "sudo" power: i.e. he is not listed in the /etc/sudoers list. Just make sure that the filesystem he is working to allows him to set user id.

You can try that if it works. It works in my Slackware.

Hope that helps.

Good luck.

Last edited by malekmustaq; 11-20-2012 at 12:34 AM.
 
Old 11-20-2012, 06:36 AM   #3
RaviTezu
Member
 
Registered: Nov 2012
Location: India
Distribution: Fedora, CentOs, RHEL
Posts: 164

Rep: Reputation: 24
I guess /etc/sudoers may help you.

Try learn the syntax of the /etc/sudoers file.

& you will get it.
 
Old 11-20-2012, 09:56 AM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,650

Rep: Reputation: 2855Reputation: 2855Reputation: 2855Reputation: 2855Reputation: 2855Reputation: 2855Reputation: 2855Reputation: 2855Reputation: 2855Reputation: 2855Reputation: 2855
Quote:
Originally Posted by ust View Post
I would like to have a special user that can su all general user , but this special user do not have other root permission but only can do su , is that possible to have such user ?
Is it possible for you to even say "thanks" after people help you, post a solution after you get help, or even acknowledge people replied to you?? Because you've NEVER done that so far.

Read the man page on the sudo command, and pay attention to the -u option. Set the sudoers file up accordingly.
 
1 members found this post helpful.
  


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
How to edit PAM DB of VSFTPD (..add user, delete user, change user password ) arun5002 Linux - Server 1 10-02-2012 08:49 AM
unchecked link between pc user and sudo user on Mint5 how do I get it back,stop laugh Fred Caro Linux - Newbie 2 04-22-2009 08:36 PM
how to create sftp user only in red hat 4 not ftp user ..only sftp user princeu28 Linux - Newbie 1 10-14-2008 08:10 AM
C program to see user log on in system and print user with real user name also naveen245 Programming 2 12-21-2005 12:53 AM


All times are GMT -5. The time now is 06:47 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration