restored a backup and can't su to root now

Randy McMurchy randy at
Sun Feb 4 10:35:35 PST 2007

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
using cp -dpR (cp -a). And the SUID bit *is* copied across:

root at rmlscsi: /home/randy > ls -l su
ls: su: No such file or directory

root at rmlscsi: /home/randy > cp -a /bin/su .

root at rmlscsi: /home/randy > ls -l su
-rwsr-xr-x 1 root root 21940 Mar 25  2006 su


rmlscsi: [bogomips 1003.26] [GNU ld version 2.16.1] [gcc (GCC) 4.0.3]
[GNU C Library stable release version 2.3.6] [Linux i686]
12:33:00 up 25 days, 12:47, 1 user, load average: 0.04, 0.08, 0.25

More information about the blfs-support mailing list