Re: restored a backup and can't su to root now

2007-02-05 Thread Barius Drubeck
On Sunday 04 February 2007 17:27, Dan Nicholson wrote: > On 2/4/07, P R Figueiredo <[EMAIL PROTECTED]> wrote: > > Baho Utot wrote: > > > Check that su is SUID > > > > > > [EMAIL PROTECTED] ~]$ ls -la /bin/su > > > -rwsr-xr-x 1 root root 24060 Jan 10 10:06 /bin/su > > > > Yep, that was it, thanks. I

Re: restored a backup and can't su to root now

2007-02-04 Thread Arnie Stender
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arden wrote: > What is this -a option? My man cp doesn't show any -a option. I had > the same trouble with cp so I have done this; cd to the partition you > want to move and > tar cvpf - .|(cd /mnt/hda6; tar xvpf - .) > > Seems to work better. >

Re: restored a backup and can't su to root now

2007-02-04 Thread Arnie Stender
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan Nicholson wrote: > On 2/4/07, Arnie Stender <[EMAIL PROTECTED]> wrote: > >> I don't have time right now to test tar and cpio but I do know for >> sure >> a straight cp of an SUID file does NOT produce an SUID copy of the file, >> even if

Re: restored a backup and can't su to root now

2007-02-04 Thread Arden
On Feb 4, 2007, at 10:21 AM, Arnie Stender wrote: > Dan Nicholson wrote: > >> Not if you did it as an unprivileged user. It'd be a security hole >> for >> you to copy stuff and retain other's privileges. Only root can do >> that. A simple `cp -a' works, but `tar' or `cpio' are probably better >

Re: restored a backup and can't su to root now

2007-02-04 Thread Dan Nicholson
On 2/4/07, Arnie Stender <[EMAIL PROTECTED]> wrote: > I don't have time right now to test tar and cpio but I do know for > sure > a straight cp of an SUID file does NOT produce an SUID copy of the file, > even if done as root. I just did a "cp -a" of Xorg as root, which is suid, and it s

Re: restored a backup and can't su to root now

2007-02-04 Thread Randy McMurchy
Arnie Stender wrote these words on 02/04/07 12:21 CST: > I don't have time right now to test tar and cpio but I do know for sure > a straight cp of an SUID file does NOT produce an SUID copy of the file, > even if done as root. Um, Arnie, the thread started with someone saying that they are

Re: restored a backup and can't su to root now

2007-02-04 Thread Arnie Stender
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan Nicholson wrote: > Not if you did it as an unprivileged user. It'd be a security hole for > you to copy stuff and retain other's privileges. Only root can do > that. A simple `cp -a' works, but `tar' or `cpio' are probably better > suited for this

Re: restored a backup and can't su to root now

2007-02-04 Thread Dan Nicholson
On 2/4/07, P R Figueiredo <[EMAIL PROTECTED]> wrote: > Baho Utot wrote: > > Check that su is SUID > > > > [EMAIL PROTECTED] ~]$ ls -la /bin/su > > -rwsr-xr-x 1 root root 24060 Jan 10 10:06 /bin/su > > Yep, that was it, thanks. It seems permissions were not copied through > the backup process. For i

Re: restored a backup and can't su to root now

2007-02-04 Thread P R Figueiredo
Baho Utot wrote: > Check that su is SUID > > [EMAIL PROTECTED] ~]$ ls -la /bin/su > -rwsr-xr-x 1 root root 24060 Jan 10 10:06 /bin/su Yep, that was it, thanks. It seems permissions were not copied through the backup process. For instance, now the /tmp dir wasn't writeable by common users either

Re: restored a backup and can't su to root now

2007-02-04 Thread Baho Utot
On Sunday 04 February 2007 8:59 am, P R Figueiredo wrote: > I restored my (B)LFS system from a backup (basically, booted from a cd, > copied everything from the backup disk to the destination disk, mounted > the /dev filesystem, and fixed grub), and everything's working just fine > except for this

restored a backup and can't su to root now

2007-02-04 Thread P R Figueiredo
I restored my (B)LFS system from a backup (basically, booted from a cd, copied everything from the backup disk to the destination disk, mounted the /dev filesystem, and fixed grub), and everything's working just fine except for this annoying thing: if I log in as a common user, I can't su to ro