LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-12-2012, 07:05 AM   #1
mohgam
LQ Newbie
 
Registered: Jan 2012
Posts: 5

Rep: Reputation: Disabled
How to set root user under home directory ?


I am new to this and so would appreciate being told in plain English what I need to do or where I need to start.

I notice that the root user can't be seen under home directory , i dont know why ?

and how could I get it seen under home directory ???

and there is another user cant be seen under home directory , how could I set it under home??
 
Old 01-12-2012, 07:22 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Do you mean that you are looking for the home directory of root? Being root, it is located in /root.
 
Old 01-12-2012, 07:30 AM   #3
Janus_Hyperion
Member
 
Registered: Mar 2011
Location: /
Distribution: Fedora (typically latest release or development release)
Posts: 372

Rep: Reputation: Disabled
Post

Quote:
Originally Posted by mohgam View Post
I notice that the root user can't be seen under home directory , i dont know why ?

and how could I get it seen under home directory ???
The root will not have a directory under /home. /home is only for users other than root. As far as I know, there is no way to make the root have a directory under /home.

If you are looking for root directory, it is /root
 
Old 01-12-2012, 07:35 AM   #4
mohgam
LQ Newbie
 
Registered: Jan 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
corp769 , thanx for reply

when i create a new user, i can see it under the directory "home" .

but there is some users ("root" user ," openerp " user )I cant see them under the directory "home" , and I need to be there.
 
Old 01-12-2012, 07:43 AM   #5
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Root is not meant to be under /home, period. And what is the openerp user for? If it is for a service or another program, then that's why it's not there; It is not meant to be used to log into.
 
Old 01-12-2012, 07:48 AM   #6
padawan
LQ Newbie
 
Registered: Sep 2007
Posts: 1

Rep: Reputation: 0
Am I correct in thinking that operp is an installed software related to openerp.com ? If so then this particular user seems to be a user installed by software to delegate permissions with. It's very common for software installed users to not have their own home folders. Since they aren't users like myself and you, they don't need their own desktop, and music folder and other things associated with a regular user, so they don't get one.

If the openerp user is the actual one that you are having issues with, maybe explaining why you need access to that users home entry might shed light on a better solution. There are ways to re-make that user, but those will likely reset some properties associated with that user which were set by the software. Off hand, I'm not sure what ones, that being said, I don't recommend that route.

Does that seem to make sense?

-padawan
 
Old 01-12-2012, 07:49 AM   #7
mohgam
LQ Newbie
 
Registered: Jan 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
nonamedotc ,corp769

thanx for reply ,

it's clear now
thanx
 
Old 01-12-2012, 08:10 AM   #8
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by mohgam View Post
I am new to this and so would appreciate being told in plain English what I need to do or where I need to start.

I notice that the root user can't be seen under home directory , i dont know why ?

and how could I get it seen under home directory ???

and there is another user cant be seen under home directory , how could I set it under home??
By default root gets it home directory in root/

and for any other user you created, it gets its home directory inside
Code:
/home/
where you can see the name of the directory by the name of user

for eg
Code:
#cd /home
#ls
user1  user2  user3  <---where each directory indicates about home directory for each user as per the name of directory
and if you want to define any other directoy as home to any existing user then
Code:
#usermod -d /new/path/to/dir  username
while adding user if you want to specifiy different home directory
Code:
#useradd -d /new/path/to/dir  username
 
  


Reply



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 root and my main user account share the same home directory? rivercat Linux - Newbie 11 02-21-2011 07:22 PM
User Home Directory now owned bt Root AndeAnderson Linux - Newbie 4 10-09-2009 03:52 PM
How can I set the permission on the home directory when creating an user crisostomo_enrico Solaris / OpenSolaris 4 09-26-2007 06:24 PM
How to set user's root directory in SSH? nyy Linux - Software 2 08-24-2004 06:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:04 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration