LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-06-2012, 06:50 AM   #16
zaeem
Member
 
Registered: Jan 2010
Posts: 125

Original Poster
Rep: Reputation: 15

Dear evo2,

Thanks a lot for your assistance. I can't see sudosh in /bin directory. I think it yes to be present there to be used in usermod command. But I have installed above mentioned RPM.
 
Old 03-06-2012, 01:19 PM   #17
zaeem
Member
 
Registered: Jan 2010
Posts: 125

Original Poster
Rep: Reputation: 15
Wrote same question twice so removing one

Last edited by zaeem; 03-06-2012 at 01:20 PM.
 
Old 03-06-2012, 02:30 PM   #18
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 257

Rep: Reputation: Disabled
Hi zaeem,

Try this,

#/etc/sudoers
# Cmnd alias specification
Cmnd_Alias SHELLS = /bin/csh, /bin/sh, /usr/bin/ksh, /bin/ksh, /usr/bin/tcsh, /bin/tcsh, /bin/dash, /bin/bash, /bin/ksh93
Cmnd_Alias SU_CMD = /bin/su

#%sudo ALL=(ALL) ALL
%sudo ALL = (ALL) ALL, !SHELLS, !SU_CMD

I think it may help you.
 
Old 03-07-2012, 09:14 AM   #19
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Do you want to prevent that the user gets a root shell? He could install his own bash in his home directory and use it this way.
 
Old 03-07-2012, 11:51 AM   #20
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 257

Rep: Reputation: Disabled
Hi Reuti,

You are absolutely right.

I think only solution to this problem is, give access for limited commands.

Thanks for your reply.
 
  


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
How to give user same access level as root - Fedora 14 - KDE MakeOrBreak Linux - Newbie 4 04-09-2011 04:22 PM
[SOLVED] how to grant access to a non root users to reboot,halt,configure date and .... golden_boy615 Linux - General 5 12-18-2010 01:26 AM
Grant normal user to run certain script with root access cdestiny Linux - Server 4 09-30-2008 02:42 AM
why can't root level access do everything root account can do? newbiesforever Linux - General 6 09-22-2008 10:02 AM
Grant a user root privileges to add and delete users Maranza Linux - Security 6 11-02-2006 10:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:31 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