About Us

RSInfoMinds, a web based IT Training and Consultancy firm. It is established with high dreams in training people in IT Infrastructure Field. We provide Online and Class Room training in various fields of IT Infrastructure Management.

Join Us: http://www.facebook.com/RSInfoMinds
Mail Us: rsinfominds@gmail.com
Twitter: @RSInfoMinds

We are specialized in the below courses:

Redhat Linux Admin Redhat Linux Cluster
Redhat Virutualization IBM AIX Admin
IBM AIX Virtualization IBM AIX Cluster
HP Unix Admin HP Unix Cluster
HP Unix Virtualization Shell Scripting
Veritas Volume Manager Veritas Cluster
Oracle Core DBA VMWare


We provide training in such a way, So that you get in depth knowledge on the Courses you look for.

And we ensure you are very confident from each and every Techincal aspect that the IT Industry needs and expects from you.

We also conduct Workshops on the latest technology and the real time faculties sharing their work experiences to make you the best.

Friday, 16 March 2012

Virtual Home Directory

In UNIX, a user can login only when they have an account in the server which has an entry at /etc/passwd and other files.

The default location where the user logs in is their respective home directory /home/<username> execpt the "
root". "Root" user logs into "/".

The home directory is created when the # useradd command is used with "-m" flag.

#useradd -m test : Command creates a user called "test" with the home directory of the same name under "/home".

#useradd test : Command create the user "test" with the default attributes.

So what makes the difference when this is executed:

#su - test
#echo $HOME

On the both the case the output will be "/home/test". But the difference is,

# useradd -m test : Creates a home directory.

#useradd test : Created a virtual directory, that is the directory does not exist in real, but allow the users to login by "#su - test", and the user do not have any control like creating a file / reading a file when they login into the virtual directory.


No comments:

Post a Comment