- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- 2 users with same home dir
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
08-05-2009 08:19 PM
08-05-2009 08:19 PM
2 users with same home dir
THis is the current user..
crmuser:x:24800:440:CRM ftp id - home/ftp/./crmuser:/bin/false
I need to create another user but with the same home dir.
THe folks are trying to run some ftp jobs but the problem is noone seems to know what the password is fo that user and that person is no longer around. I'm worried if I chnage the password, we could break some scripts if passwords are hard-coded.
We would just like to be able to create another user but with the same home-dirs as the crmuser.
Thanks and points will be assigned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2009 10:11 PM
08-05-2009 10:11 PM
Re: 2 users with same home dir
Sharing a HOME directory can be done.
Only thing you need to do is make new user account attached to the same group of the old user.
eg:
vi /etc/passwd
ftp1:x:1003:1003::/home/ftpuser1 //Old user
ftp2:x:1004:1003::/home/ftpuser1 //new
note i have used same gid for new user as in old users gid which makes both new and old user both same group
may be you have to alter home folder permission if its on 700
Good Luck...!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2009 11:36 PM
08-05-2009 11:36 PM
Re: 2 users with same home dir
Sure you can stick two users in the same home directory.
To keep permissions from being wildly open, they need to both be in the same group, gropu 440.
Then set the umask to permit group write on new files created.
You may need to modify files in the home directory so that both users can change them.
As to breaking scripts with hard coded passwords. Yes, you will break these scripts. This is not a best practices setup anyway.
You can try something else.
Public key exchange ssh, which would permit these users to log on as each other without a password.
http://www.hpux.ws/?p=10
The second user can gain access to all of crmuser data and essentially be crmuser when needed by script. I don't know if that meets the requirements, you really don't post requirements.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2009 11:02 PM
08-06-2009 11:02 PM
Re: 2 users with same home dir
let this be a lesson also for having documentation and/or a password database for important id's.
also consider cracking the unknown password of the user with 'john the ripper' or the likes;
http://www.openwall.com/john/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2009 09:26 AM
08-07-2009 09:26 AM
Re: 2 users with same home dir
Then
sudo -i -u crmuser
would allow one of those users to get a shell as crmuser.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2009 04:07 PM
08-07-2009 04:07 PM