Unix Technical Forum

Unable to su

This is a discussion on Unable to su within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> PJ Beers <pj_beers@laimtoh.com> wrote: > ~$ mount /dev/sda2 > mount: must be superuser to use mount That is the ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 02-20-2008, 08:08 AM
Eef Hartman
 
Posts: n/a
Default Re: Unable to su

PJ Beers <pj_beers@laimtoh.com> wrote:
> ~$ mount /dev/sda2
> mount: must be superuser to use mount


That is the behaviour when the "setuid" bit hasn't been set on the
"mount" executable (and maybe neither on "su"?).
Please check if the attributes are as follows:
-rwsr-xr-x 1 root bin 68804 2004-05-27 23:26 /bin/mount
-rws--x--x 1 root bin 35780 2004-06-21 21:20 /bin/su
^ note those "s"es there (instead of "x")!!
This means the program has the right to run as ROOT, no matter
what user starts it. In octal, the attributes are:
4755 (for mount) cq 4711 (for su) and if they aren't like that in
your system, please change them back:
chmod <octal_value> /bin/<command>
as root.
PS: the OWNER of those commands must also be "root"!
--
************************************************** ******************
** Eef Hartman, Delft University of Technology, dept. EWI/TW **
** e-mail: E.J.M.Hartman@math.tudelft.nl, fax: +31-15-278 7295 **
** snail-mail: P.O. Box 5031, 2600 GA Delft, The Netherlands **
************************************************** ******************
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 02-20-2008, 08:10 AM
PJ Beers
 
Posts: n/a
Default Re: Unable to su

Menno Duursma wrote:

> On Tue, 07 Jun 2005 02:02:38 +0200, PJ Beers wrote:
>
>> Can it be that imaging and restoring, and/or resizing partitions
>> changed all the suid-permissions to x-permissions?

>
> Depending on the exact way one has gone about "imaging" : yes.
> (A simple "cp" or "tar" without "p" would do that, for instance.)


I used partimage, and also copied files, I can't remember exactly anymore...

>> How do I find out which files originally had the suid-bit?
>> I.e., after a fresh Slack-10.1 install?

>
> Get the manifest from here:
> ftp://ftp.slackware.com/pub/slackwar...0.1/slackware/
>
> Then search through it for the information you seek i.e.:
>
> bzcat MANIFEST.bz2 |grep "\-rws"


I did this; I saw that not only had some permissions changed, also some
file-owners and file-groups had changed, so I've decided to reïnstall, it
was time anyway to choose some different packages for my computer. Should
have done it immediately of course

Anyway, thanks a lot for all the info, if nothing else I learned a lot!

PJ

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:01 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com