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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-30-2013, 06:09 PM
|
#1
|
LQ Newbie
Registered: Jul 2013
Distribution: Slackware 14
Posts: 4
Rep: 
|
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,
|
|
|
07-30-2013, 06:30 PM
|
#2
|
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349
Rep: 
|
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: I believe the default permissions are "-rws--x--x".
|
|
|
07-31-2013, 04:23 AM
|
#3
|
LQ Newbie
Registered: Jul 2013
Location: EU
Posts: 20
Rep: 
|
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.
|
|
|
07-31-2013, 08:28 AM
|
#4
|
Member
Registered: Mar 2013
Posts: 650
Rep: 
|
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.
|
|
|
07-31-2013, 10:04 AM
|
#5
|
LQ Newbie
Registered: Jul 2013
Distribution: Slackware 14
Posts: 4
Original Poster
Rep: 
|
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.
|
|
|
07-31-2013, 10:39 AM
|
#6
|
Member
Registered: Mar 2013
Posts: 650
Rep: 
|
I meant, run this command and try again.
chmod 4755 /bin/su
|
|
|
07-31-2013, 12:30 PM
|
#7
|
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: 
|
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.
|
|
|
07-31-2013, 12:35 PM
|
#8
|
LQ Newbie
Registered: Jul 2013
Distribution: Slackware 14
Posts: 4
Original Poster
Rep: 
|
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:
It tells me: Could not find the order.
Thanks for the support.
|
|
|
07-31-2013, 08:35 PM
|
#9
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,270
|
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.
|
|
|
08-01-2013, 09:12 AM
|
#10
|
LQ Newbie
Registered: Jul 2013
Distribution: Slackware 14
Posts: 4
Original Poster
Rep: 
|
I checked the file path /bin/su and to my surprise it was empty, first proceeded to run this command:
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.
|
|
|
All times are GMT -5. The time now is 02:00 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|