Posted by Randika
on April 17, 2009
By default on fedora 10 you can’t login as the root user from the Gnome login screen(GUI). I’m not exactly sure why it is disabled. anyway there we can enable it by doing some modification to /etc/pam.d/gdm
to do so, just login as a normal user and type this command to become root user:
# su -
provide the password for the root account and open the above mentioned file from your favourite editor:
# gedit /etc/pam.d/gdm
or
# vi /etc/pam.d/gdm
find this line and uncomment it.
auth required pam_succeed_if.so user != root quiet
Save and close the file. Logout from the system. Now you should be able to login as root user from the login screen.
Posted by Randika
on April 17, 2009
By default user is added to /home directory. I just came up with a requirement of changing this to somewhere else. So here is the solution if you looking for the same.
Default values for account creation defined in /etc/default/useradd file under Linux distros.
Let’s open it up using a text editor. I’m using vi editor as always.
# vi /etc/default/useradd
here is what i can see in my fedora box:
# useradd defaults file
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
CREATE_MAIL_SPOOL=yes
as you can see the default home directory defined by HOME variable. just replace it with your new path.
HOME=/allusers/developers