LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-30-2013, 06:09 PM   #1
isidro-ruiz
LQ Newbie
 
Registered: Jul 2013
Distribution: Slackware 14
Posts: 4

Rep: Reputation: Disabled
Access denied 'su' with my user.


Hi people,

I was installing updates to my Slackware14 64 bits and the next day I turned on the computer to install a package like 'su' (because I always do well) tells me permission denied in this way:

Code:
bash-4.2 $ su
bash: / bin / su: Permission denied
I am new to this, anyone know why I can not run it again as usual?

I welcome your comments.

Regards,
 
Old 07-30-2013, 06:30 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349

Rep: Reputation: Disabled
Could be something wrong with the permissions on the /bin/su executable (or /usr/bin/su on older versions of Slackware). Take a look with:
Code:
ls -l /bin/su
I believe the default permissions are "-rws--x--x".
 
Old 07-31-2013, 04:23 AM   #3
daniel w.
LQ Newbie
 
Registered: Jul 2013
Location: EU
Posts: 20

Rep: Reputation: Disabled
gpasswd -a user wheel

I dont use Slack, but i think that may do the trick. Add your user to the wheel group


regards
D.W

Last edited by daniel w.; 07-31-2013 at 04:25 AM.
 
Old 07-31-2013, 08:28 AM   #4
eklavya
Member
 
Registered: Mar 2013
Posts: 650

Rep: Reputation: 145Reputation: 145
I have ubuntu and CentOS and permission of su file is same in both and that is
Quote:
-rwsr-xr-x. 1 root root 34904 Jun 22 2012 /bin/su
I am not sure if 4755 is a security loop hole because the permission is given to me by default(after installation), I haven't tempered with them so if 4711 is not solving your problem, you can try with 4755.
 
Old 07-31-2013, 10:04 AM   #5
isidro-ruiz
LQ Newbie
 
Registered: Jul 2013
Distribution: Slackware 14
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for your answers.

Still I have the same detail.
The above comment Ser Omly is:
Code:
bash-4.2$ ls -l /bin/su
-rws--x--x 1 root root 0 may 16 21:20 /bin/su
After the session I went to root to run what I commented daniel.wiater
Code:
gpasswd -a <user> wheel
And I don't understand eklavya with what he says.

Last edited by isidro-ruiz; 07-31-2013 at 10:31 AM.
 
Old 07-31-2013, 10:39 AM   #6
eklavya
Member
 
Registered: Mar 2013
Posts: 650

Rep: Reputation: 145Reputation: 145
I meant, run this command and try again.
chmod 4755 /bin/su
 
Old 07-31-2013, 12:30 PM   #7
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
Quote:
-rws--x--x 1 root root 0 may 16 21:20 /bin/su
Cant say what could be the issue here But 4755 will not work and should not be done.

Last edited by SAbhi; 07-31-2013 at 12:33 PM.
 
Old 07-31-2013, 12:35 PM   #8
isidro-ruiz
LQ Newbie
 
Registered: Jul 2013
Distribution: Slackware 14
Posts: 4

Original Poster
Rep: Reputation: Disabled
Run this command from the root session, because in my user session says: Operation not permitted.
It does not send the message: Permission denied.
But if I try to run the command:
Code:
slackpkg update
It tells me: Could not find the order.

Thanks for the support.
 
Old 07-31-2013, 08:35 PM   #9
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,270
Blog Entries: 4

Rep: Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143
If you are not in the wheel group, the correct response (after you successfully enter your password) should be: su: sorry ...

... not operation not permitted.

This message implies that the su program is "not executable." However, you should start with which su to determine which program/file is being attempted.
 
Old 08-01-2013, 09:12 AM   #10
isidro-ruiz
LQ Newbie
 
Registered: Jul 2013
Distribution: Slackware 14
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thumbs up

I checked the file path /bin/su and to my surprise it was empty, first proceeded to run this command:

Code:
chmod 4711 /bin/su
Because 4755 was previously executed.

After entering the root session and then change the mirror I had to update the packages. Step a few minutes to update the installed packages. Restart my Slackware and since /bin/su file contained some bytes and since I can run the command terminal su.

Thank you very much to everybody for the support.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
User Access Denied dhUmra Linux - General 1 06-06-2005 05:57 PM
MySQL: 'access denied for user' turbo_acura Linux - General 1 10-20-2004 08:34 AM
mySQL Access denied for user Gerardoj Linux - General 2 03-21-2004 10:13 AM
getting access denied , when trying to access camera as normal user bennythepitbull Linux - Hardware 2 11-04-2003 02:30 AM
MYSQL access denied for user c0c0deuz Linux - General 1 03-18-2003 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:00 PM.

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