LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-24-2004, 11:36 AM   #1
CooManChu
Member
 
Registered: Dec 2004
Location: Chicago, IL
Distribution: Ubuntu 10
Posts: 46

Rep: Reputation: 15
Question root login shell tcsh does not allow "su"


Hi - does someone know why I can su to the root account when I have root's login shell set as bsh, but when it's tcsh, I cannot?

After entering the correct password, su tries to run tcsh, but cannot:

tcsh: no such file or directory.

I have other users set up to use the tcsh as their default shells, so I know that tcsh is accessible (the user account attempting the su is in fact in tcsh).

Even the root account itself cannot su to root when the logic shell is tcsh, but it can su to regular user accounts.

Thanks in advance for the help,

Scott
 
Old 12-24-2004, 01:16 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Do you have the full path to tcsh in root's entry in the password file? Just tcsh by itself won't work, you need /bin/tcsh (assuming tcsh is in /bin). Failing that, double check and make sure that tcsh is in /etc/shells.
 
Old 12-24-2004, 03:23 PM   #3
CooManChu
Member
 
Registered: Dec 2004
Location: Chicago, IL
Distribution: Ubuntu 10
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks - you're right - I think the full path wasn't specified in the /etc/passwd file. I had it set to use /bin/bsh so that I could su, changed it back to tcsh (specifiying the full path name) and can still su just fine. I must have had it set incorrectly before and missed it when I checked.

Thanks again,

Scott
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 05:08 PM
No UTMPX entry, You must EXEC "login" for the lowest "shell" ooihc Solaris / OpenSolaris 7 03-12-2007 03:09 PM
User Login Problem: "command not found" unless root! DreameR-X Linux - General 15 12-21-2004 12:27 PM
bash equivalence of tcsh "alias em "emacs \!:1 &""? rgiggs Slackware 3 07-29-2004 03:07 AM
Default Login is "Knoppix" how do i get into Root? phoenix07 Linux - Newbie 1 04-04-2004 05:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration