- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sharing home directory
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2002 11:50 AM
06-29-2002 11:50 AM
Can I setup two users to share same directory?
Are there any restrictions such as they should belong to same group etc? Any other restrictions on the name of the home directory?
Regards,
Jayesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2002 12:07 PM
06-29-2002 12:07 PM
Re: Sharing home directory
extract from the man page regarding useradd command
A directory can be shared between the users belonging to the same group. If the home directory is in the unshared mode and a new user is allocated to that directory then it will be put into the shared
mode by setting the permissions of that directory to 775 (i.e.
includes the write permissions to the group as well). Also, the
directory which will be shared should have read and execute
permissions for the group. Otherwise, useradd will report an error.
Do
man useradd for more info
I have attached some notes i put together for myself regarding useradd also
Hope this helps
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2002 12:14 PM
06-29-2002 12:14 PM
Re: Sharing home directory
Both the users should be in the same group or atleast the group of user1 should be the secondary group for the user2. And group should have the required permissions for the directory(775 if you want to have full permissions.).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2002 12:31 PM
06-29-2002 12:31 PM
Re: Sharing home directory
To create your initial user belonging to group admin
useradd -m steevo -g admin
Creates home directory with files from /etc/skel
Add another user belonging to the same group, keep in mind directory permissions as previously stated to allow full access
useradd -d /home/steevo steevo1
will create user steevo1 having a home directory steevo
You also have usermod commands to change parameters for users when required
Hope this helps
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2002 12:42 PM
06-29-2002 12:42 PM
SolutionTim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2002 04:41 AM
06-30-2002 04:41 AM
Re: Sharing home directory
just make sure that those *sharing* users do have different "$HISTFILE" settings, like:
export HISTFILE=$HOME/.sh_$(logname)_history
in the shared "$HOME/.profile" or "$HOME/.shrc".
That way they won't disturb each other's history!
Just my $0.02,
Wodisch