[opensuse] su no longer working
![](https://seccdn.libravatar.org/avatar/18cd1e60e67ff43e038e0edd00421995.jpg?s=120&d=mm&r=g)
I've been doing some rearrangement on my system (SUSE 11.1) using the command su in order to run root required commands. All of a sudden the su command no longer works. The following is an example of what has happened: eck@linux-dria:~>su Password: linux-dria:/home/eck # df linux-dria:/home/eck # cd / linux-dria:/ #ls -lag linux-dria:/ # Notice that nothing happens. What might of happened to cause this? I can login to one of the virtual terminals as root and there is no problem. Thank for any ideas, Terry -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/af7de3377b7d62ead8f89c3ede81b1bc.jpg?s=120&d=mm&r=g)
eck@linux-dria:~>su
The su command uses the profile of the current user. Try using "su -" minus the " marks ie: eck@Linux-dria:-> su - Password: -- Michael S. Dunsavage -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/67e3b6c15ca64861f88226ca58c574d7.jpg?s=120&d=mm&r=g)
On Friday 23 January 2009 02:40:23 Michael S. Dunsavage wrote:
eck@linux-dria:~>su
The su command uses the profile of the current user.
That is true, but that shouldn't have affected the output of the commands Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/90f76aab24212c907451b5e06dadf83b.jpg?s=120&d=mm&r=g)
On Thursday 22 January 2009 7:45:33 pm Anders Johansson wrote:
On Friday 23 January 2009 02:40:23 Michael S. Dunsavage wrote:
eck@linux-dria:~>su
The su command uses the profile of the current user.
That is true, but that shouldn't have affected the output of the commands
Maybe... I'm wondering if there's a shell "feature" that lets you redirect output to something other than the screen. Like to a nul device or something. Try starting su under a different shell from what you usually use and see if it does the same thing. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/67e3b6c15ca64861f88226ca58c574d7.jpg?s=120&d=mm&r=g)
On Friday 23 January 2009 02:30:51 Terry Eck wrote:
Notice that nothing happens. What might of happened to cause this?
Of you done anything special to your system when you "rearranged" it? Could you run strace -f df when you of su:d to root, and post the output? Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/18cd1e60e67ff43e038e0edd00421995.jpg?s=120&d=mm&r=g)
Anders Johansson wrote:
On Friday 23 January 2009 02:30:51 Terry Eck wrote:
Notice that nothing happens. What might of happened to cause this?
Of you done anything special to your system when you "rearranged" it?
Could you run
strace -f df
when you of su:d to root, and post the output?
Anders
linux-dria:/ # strace -f df execve("/home/eck/bin/df", ["df"], [/* 78 vars */]) = -1 ENOEXEC (Exec format error) dup(2) = 5 fcntl64(5, F_GETFL) = 0x2 (flags O_RDWR) fstat64(5, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f00000 _llseek(5, 0, 0xbf81e2fc, SEEK_CUR) = -1 ESPIPE (Illegal seek) write(5, "strace: exec: Exec format error\n", 32strace: exec: Exec format error ) = 32 close(5) = 0 munmap(0xb7f00000, 4096) = 0 exit_group(1) = ? linux-dria:/ # ============================================================================================= what appears to have solved the problem. Delete files under /home/eck/bin Don't know exactly how command files like df wound up under /home/eck/bin but removing all the files appears to have solved the problem. I wonder what else is lurking on my system because of the "rearrangement". Anyway thank Andrens for you suggestion. Terry -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Anders Johansson
-
Constantinos Maltezos
-
Michael S. Dunsavage
-
Terry Eck