How to assign a user to the particular partition ?
Hi Linux-GURU's ,
I am using Linux RH 9.0 . I need some help on the following . I want to create a particular user (say XYZ) with root privileges . And I want to create a new partition say (part-1) . And my requirement is to assign this partition to newly created user (xyz) as its home directory . So as this user logs in to the machine , he should be alloted part-1 partition as its home directory . Please guys help me out !!!! . Thanx in advance .. Cheers !!!! . |
For the root-privileges: take a look at 'sudo', you can define users who should be allowed to do specified tasks that normally requires root-privileges. (That explanation wasn't very good, check manpages or search the forum! 'sudo' is rather easy to use.)
About the home-partition: su to root, edit /etc/fstab, add a line: /dev/hdb1 /home/XYZ ext3 defaults 1 2 (if it's an ext3-partition) |
Hi Pingu ,
First of all thanx for the reply ..... Now coming back to the question .... yes you have solved my some requirements .... e.g. Root Privilege .... . But yes .. maybe u didnt get what I want actually ..... see ... putting this entry /dev/hdb1 /home/XYZ ext3 defaults will assign /dev/hdb1 ( which is the existing partition ) to /home/xyz ..... . But i want to create new partition ( pqr ) and assign it to the new user xyz . So when the user logs into the machine is will we directed to the new partition pqr automatically . Please ask if u need something more details . |
What is then the problem?
You create the partition and edit /etc/fstab to mount it where you want it. |
All times are GMT -5. The time now is 12:43 PM. |