LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-02-2003, 06:48 PM   #1
GEEXTER
LQ Newbie
 
Registered: Nov 2002
Posts: 15

Rep: Reputation: 0
home directory under a home directory


I'm trying to create a home directory under a home directory.
Is it possible?


Example:

LOGIN AS ROOT

existing directory: /home/qp

mkdir /home/qp/gess

useradd gess -d /home/qp/gess -p password

chown gess /home/qp/gess

chmod 775 /home/qp/gess


...then when I log in as gess it says I do not have permission to access /home/qp/gess.

Any clues?
 
Old 04-02-2003, 06:51 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
If they have "x" attribute on all above directories, then yes. Make sure you just give it X on the directory, so:
chmod a+x /home/qp
would add that attribute, then give the user permission to access that directory, and in turn, access the home directory within it.

AFAIK

Cool
 
Old 04-02-2003, 08:00 PM   #3
GEEXTER
LQ Newbie
 
Registered: Nov 2002
Posts: 15

Original Poster
Rep: Reputation: 0
Thank you so much. It worked perfectly, MasterC.
 
Old 04-03-2003, 08:34 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Cool, you're welcome.

Cool
 
Old 04-03-2003, 09:17 AM   #5
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
Question (Out of curiosity): Why would you want to do this?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
Home Directory! UltraSoul Solaris / OpenSolaris 1 01-01-2005 09:26 AM
home directory paul62 Linux - Newbie 3 11-18-2004 08:39 PM
QT and the home directory Pougan Linux - Newbie 3 11-02-2003 09:55 AM
Can't get in home directory--Help dtsfanatic Linux - General 1 08-10-2002 03:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:43 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