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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 ** ************************************************** ****************** |
| ||||
| 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 |