LinuxQuestions.org
Help answer threads with 0 replies.
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 09-19-2013, 05:25 AM   #1
ruffrider
LQ Newbie
 
Registered: Sep 2013
Posts: 13

Rep: Reputation: Disabled
Smile sudo: unable to execute /bin/su:


Hello

I'm new to this forum, I hope you can help me.
I am a beginner in system administration, and I encountered a problem.
I have a user "abc" can not mount root when ssh connects with his account, and after that tape sudo su -
this error:
sudo: unable to execute / bin / su: Resource temporarily unavailable
and yet it is added to the sudoers file:
abc ALL = (ALL) ALL

thank you for your help
 
Old 09-19-2013, 06:10 AM   #2
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Rep: Reputation: 15
Can you try,

abc ALL=(ALL:ALL) ALL
 
Old 09-19-2013, 06:15 AM   #3
ruffrider
LQ Newbie
 
Registered: Sep 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
I already tried it, and it's the same thing, this method I found in the sudoers file Debian OS, by cons in my case, I use centos.
Thank you for your response.
 
Old 09-19-2013, 06:52 AM   #4
ruffrider
LQ Newbie
 
Registered: Sep 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
Help me please
 
Old 09-19-2013, 06:59 AM   #5
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 664

Rep: Reputation: 80
add user abc to group wheel and MAKE a similar entry in sudoers for wheel.. although for wheel it should already be there.. you just have to uncomment it.
 
Old 09-19-2013, 07:04 AM   #6
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Rep: Reputation: 15
What is the output of user abc for the command,

sudo -l
 
Old 09-19-2013, 07:14 AM   #7
ruffrider
LQ Newbie
 
Registered: Sep 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
I already try to assign the user abc to the wheel group and uncomment the line %wheel in the sudoers file, and it did not work too!

thank you for your intervention

the output of the command sudo-l is:

Matching Defaults entries for AdmiNet on this host:
requiretty,! visiblepw, always_set_home, env_reset, env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR LS_COLORS" env_keep + = "MAIL PS1 PS2 QTDIR
USERNAME LANG LC_CTYPE LC_ADDRESS "env_keep + =" LC_COLLATE LC_MESSAGES LC_IDENTIFICATION LC_MEASUREMENT "env_keep + =" LC_MONETARY LC_NUMERIC lc_name
LC_PAPER LC_TELEPHONE "env_keep + =" LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY "secure_path = / sbin \ :/ bin \ :/ usr / sbin \ :/ usr / bin

User AdmiNet Following the May run commands on this host:
(ALL) ALL
(ALL) ALL


Thank you
 
Old 09-19-2013, 07:29 AM   #8
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
hmm

you are using sudo to get root so you can execute su - to get a root login shell

Code:
sudo -i
does the same

or

Code:
sudo bash -l
 
Old 09-19-2013, 07:34 AM   #9
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
Oh, and undo all the wheel nonsense..

looks like you have ubuntu,
by default your first Account has the group sudo, and you have this in /etc/sudoers

Code:
%sudo	ALL=(ALL:ALL) ALL
 
Old 09-19-2013, 08:17 AM   #10
ruffrider
LQ Newbie
 
Registered: Sep 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
no positive result!
I added '%root' in sudoers file , it's the same thing! !!!!!!!

Yes, i can execute su - , but the user must use his password, not the password of the root
 
Old 09-19-2013, 08:24 AM   #11
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
what happens when the user does

Code:
sudo -i
man sudo
Code:
  -i [command]
                 The -i (simulate initial login) option runs the shell specified by the password database entry of
                 the target user as a login shell.  This means that login-specific resource files such as .profile
                 or .login will be read by the shell.  If a command is specified, it is passed to the shell for exe‐
                 cution via the shell's -c option.  If no command is specified, an interactive shell is executed.
                 sudo attempts to change to that user's home directory before running the shell.  The security pol‐
                 icy shall initialize the environment to a minimal set of variables, similar to what is present when
                 a user logs in.  The Command Environment section in the sudoers(5) manual documents how the -i
                 option affects the environment in which a command is run when the sudoers policy is in use.
 
Old 09-19-2013, 08:34 AM   #12
ruffrider
LQ Newbie
 
Registered: Sep 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
#sudo-i
[sudo] password for adminet:
sudo: unable to execute /bin/bash: Resource temporarily unavailable

The difference is that now it display /bin/bash, not /bin/su

have you ever seen this?
 
Old 09-19-2013, 08:43 AM   #13
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
looks like you have hit some limits

never seen it myself

http://www.centos.org/modules/newbb/...36886&forum=40

and you can get more background with a websearch on that error ( the whole line )
 
Old 09-19-2013, 09:12 AM   #14
ruffrider
LQ Newbie
 
Registered: Sep 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
the hope is lost!
 
Old 09-19-2013, 09:19 AM   #15
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
what is the output of

Code:
/sbin/sysctl fs.file-nr
 
  


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 fix "sudo: unable to execute /bin/ls: Permission denied"? nagendrar Linux - Newbie 12 09-14-2012 07:55 AM
[SOLVED] unable to execute /bin/chmod: Argument list too long veeruk101 Linux - Newbie 2 10-14-2011 07:16 AM
Cant execute file in /bin with sudo kuiper Slackware 5 12-28-2010 07:58 AM
Getting error "sudo: unable to execute ./setup: Success" d_girish_d Linux - Software 3 07-21-2009 12:33 AM
Who can tell me why I am unable to execute bin file under RHEL AS 4? memorinex2005 Red Hat 7 03-10-2005 09:10 AM


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