Ask Your Question

how do I set the home directory and shell for different users in Fedora 20

asked 2013-12-26 23:41:36 -0500

jnara gravatar image

updated 2013-12-29 00:20:18 -0500

FranciscoD_ gravatar image

I need to set a different home directory and shell for a particular user in Fedora 20. I used to be able to do this via 'Users and Groups' in Fedora 18, but there doesn't seem to be the facility to do this in 'Users and Groups' in Fedora 20; all it lets me do is set a user, password, and group - I can't define the home directory or shell that the user needs to use. How can I set a different home directory, and shell? I need tcsh instead of bash for this user.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2013-12-27 00:55:52 -0500

kmf gravatar image

updated 2013-12-27 00:57:35 -0500

Hi there As root run in a Terminal

yum install system-config-users

Should install the application you are looking for "Users & Groups"

image description

Then you can add a User and Modify it.

image description

Hope it helps.

edit flag offensive delete link more


Hi kmf, thanks for the help, but when I installed system-config-users, and then tried to add a new user in 'Users and Groups'. Users and Groups crashed. I shut down and restarted Fedora 20, but 'Users and Groups still crashes every time I try to add a new user. Well and truly stuck :(

jnara gravatar imagejnara ( 2013-12-27 02:18:22 -0500 )edit

Hi again kmf. Problem solved; when I installed the system-config files, it created another 'instance of Users and Groups' which disabled the original, but still left it accessible. I've now accessed the correct one, and everything is working fine. Thanks once again for your help :)

jnara gravatar imagejnara ( 2013-12-27 02:43:05 -0500 )edit

Great to hear!

kmf gravatar imagekmf ( 2013-12-27 03:39:38 -0500 )edit

You can also do it by commander line: sudo useradd -md <homedir> -s <shell>.

Charles Wang gravatar imageCharles Wang ( 2013-12-27 22:13:03 -0500 )edit

answered 2013-12-29 06:36:31 -0500

Charles Wang gravatar image

updated 2013-12-29 11:39:01 -0500

FranciscoD_ gravatar image

You can do it by a single commander: sudo useradd -md /home/username -s shell-path.

edit flag offensive delete link more



His query was more on the lines of "Is there a GUI that can do this?". Your answer is correct, just not the most fitting to this specific question :)

FranciscoD_ gravatar imageFranciscoD_ ( 2013-12-29 11:41:05 -0500 )edit

Why? Terminal can do everything in Linux, why do you want to use GUI?

Charles Wang gravatar imageCharles Wang ( 2013-12-29 18:23:15 -0500 )edit

Just because you can do everything on the terminal doesn't mean one absolutely has to do it via the terminal. Should one give up using firefox and move to lynx on the terminal just because it's possible to surf the web on the terminal?

Foss is about choice. Use whatever works for you :)

FranciscoD_ gravatar imageFranciscoD_ ( 2013-12-29 19:21:35 -0500 )edit

Oh, I see, thanks.

Charles Wang gravatar imageCharles Wang ( 2013-12-29 22:26:58 -0500 )edit

answered 2013-12-26 23:47:52 -0500

Charles Wang gravatar image

I found that system-config-users of MATE desktop environment can do it.

edit flag offensive delete link more


Hi Charles, thanks for your help, but I haven't been able to make this work. I downloaded the MATE desktop environment, but can't find anything in this desktop that will allow me to add a new user, let alone modify it's properties. Do you know the application name in MATE, and where to find it, that will allow me to add and modify users?

jnara gravatar imagejnara ( 2013-12-27 02:24:14 -0500 )edit

You may change the DE when login Fedora, or you can run "sudo systen-config-users" in terminal. Commander line is the easy way: sudo useradd -md <homedir> -s <shell>.

Charles Wang gravatar imageCharles Wang ( 2013-12-27 22:07:24 -0500 )edit

system-config-users does not depend on the desktop environment. You don't need to install MATE to use it. You can use it from any desktop environment.

FranciscoD_ gravatar imageFranciscoD_ ( 2013-12-29 00:19:32 -0500 )edit

Question Tools


Asked: 2013-12-26 23:41:36 -0500

Seen: 2,161 times

Last updated: Dec 29 '13