LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 07-23-2004, 02:15 AM   #1
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Rep: Reputation: 30
Question 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 !!!! .
 
Old 07-23-2004, 06:26 AM   #2
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,273

Rep: Reputation: 119Reputation: 119
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)
 
Old 07-24-2004, 02:16 AM   #3
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Original Poster
Rep: Reputation: 30
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 .
 
Old 07-26-2004, 01:28 AM   #4
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,273

Rep: Reputation: 119Reputation: 119
What is then the problem?
You create the partition and edit /etc/fstab to mount it where you want it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't assign password to user corbis_demon Linux - General 2 02-22-2005 07:46 AM
assign new data partition to specific users wycolorado Linux - Newbie 2 01-01-2005 09:53 PM
how can you assign a password to a new user want2learn Linux - Security 2 09-30-2004 07:50 AM
Assign Privs to specific user sikandar Linux - Software 13 08-31-2003 02:12 AM
How to assign directory access to a user linuxfans Linux - General 7 04-16-2003 12:06 PM


All times are GMT -5. The time now is 03:32 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration