LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 08: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, 08:22 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

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

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, 08: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, 08:43 AM   #5
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
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, 08: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, 08: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, 09:10 AM   #8
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
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


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


All times are GMT -5. The time now is 12:14 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration