[SLE] "cd xyz<tab>" In Su mode causes exit
I'm using SuSE 10.0. When I switch to root mode using "su", and in root mode, do: # cd /foo/bar/xyz<tab> to complete a directory name, then I am automatically thrown out of root mode, and get back my own user prompt, like so: # cd /foo/bar/xyzlocalhost% This happens only if my login shell is tcsh, not if it is bash. Also, this does not happen if I do "su -", but this puts me in /root instead of the current directory. Is this a known issue? Are there are any fixes? Thanks, Mandar. ps: I'd asked about this on suseforums.net. Sorry if you're seeing the message again. -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On 7/4/06, Mandar Mitra <mandar.mitra@gmail.com> wrote:
I'm using SuSE 10.0. When I switch to root mode using "su", and in root mode, do:
# cd /foo/bar/xyz<tab>
to complete a directory name, then I am automatically thrown out of root mode, and get back my own user prompt, like so:
# cd /foo/bar/xyzlocalhost%
This happens only if my login shell is tcsh, not if it is bash. Also, this does not happen if I do "su -", but this puts me in /root instead of the current directory.
Is this a known issue? Are there are any fixes?
Thanks, Mandar.
Mandar, I have not seen this discussed on this list before, but I have certainly seen similar issues. In particular I have half a dozen lab machines I log into as root all the time without X running at all (save me the histerics, its a lab machine and I need full priviledges because I'm manipulating hardware (disks/tapes/usb devices/etc.)). On these lab machines attempting tab-completion often logs my terminal session out. Not always, and I have not figured out the rhyme or reason to the madness. OTOH, if I start a terminal session from within a X-windows environment I don't recall it ever happening. FYI: I have been experincing this for a couple years at least, so it is not a recently introduced problem from my perspective. Greg -- Greg Freemyer The Norcross Group Forensics for the 21st Century -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2006-07-04 at 18:38 +0530, Mandar Mitra wrote:
to complete a directory name, then I am automatically thrown out of root mode, and get back my own user prompt, like so:
# cd /foo/bar/xyzlocalhost%
This happens only if my login shell is tcsh, not if it is bash. Also, this does not happen if I do "su -", but this puts me in /root instead of the current directory.
I have just seen a patch for that very problem in 10.1: ] tcsh - TCSH can crash on first command completion ] ] The TCSH can crash when the very first command line file or directory ] argument is completeted by using the TAB key. Porbably there is another patch for 10.0 - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFEr5hhtTMYHG2NR9URAlmhAJ9W0ZIWodHYB/XclCXZMFxSABQjuQCfXpzy 47DFYzmxFjZEgUxURmq0d0s= =kQ19 -----END PGP SIGNATURE----- -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
participants (3)
-
Carlos E. R.
-
Greg Freemyer
-
Mandar Mitra