Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 18th March 2011, 10:44 AM
siva balan Offline
Registered User
 
Join Date: Oct 2010
Posts: 34
linuxfedorafirefox
chsh and usermod commands

i am using fedora 13
i attempted to change my default shell..
so i type,
Code:
chsh -s /bin/tcsh
in command prompt.
it required my login passwordi gave ..then it got over......
when i check with the command
Code:
ps
still bash is running..
but when i type
Code:
grep <my-username> /etc/passwd
shell column shows that /bin/tcsh
what does it mean?
then,
i gave
Code:
usermod -s /bin/tcsh <mys-username>
from the root prompt
now
Code:
ps
shows tcsh
so, all i want to know is
what is the difference between the chsh and usermod -s?
thanks in advance....

Last edited by siva balan; 18th March 2011 at 10:47 AM.
Reply With Quote
  #2  
Old 18th March 2011, 01:30 PM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 5,022
linuxchrome
Re: chsh and usermod commands

You have to log out and log back in before it takes effect, I believe. (Untested at this moment).

If you logged out, logged in as root, and ran usermod, then logged back in, it would make sense.

Note I haven't tested any of this .
Reply With Quote
  #3  
Old 18th March 2011, 02:48 PM
vallimar Offline
Registered User
 
Join Date: Jul 2008
Posts: 823
windows_xp_2003chrome
Re: chsh and usermod commands

chsh just changes the shell entry in /etc/passwd.
As far as I know, usermod does the same thing.
As smr54 says, you have to re-login before it actually takes effect.
Reply With Quote
  #4  
Old 18th March 2011, 02:56 PM
suheng Offline
Registered User
 
Join Date: Sep 2010
Location: china
Posts: 13
windows_98_nt_2000firefox
Re: chsh and usermod commands

After testing under F10, when 'chsh' executed completed. shell in /etc/passwd changed immediately but not ps. When log out then log in. ps also changed to other shell.
Reply With Quote
Reply

Tags
chsh, commands, usermod

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on usermod -m -M priteshchandra Linux Chat 2 7th June 2007 04:29 AM
Path and chsh Niche Using Fedora 1 19th February 2007 10:01 PM


Current GMT-time: 23:41 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat