Operating System - HP-UX
1748183 Members
3351 Online
108759 Solutions
New Discussion

create users but with same home directory?

 
masood bt
Regular Advisor

create users but with same home directory?

Got a request from a user to create the following users (listed in bold font)and home directories.

I am not sure if we can create two different users with same directory path. can we do like this? any suggestions please? This is what the request looks like

platafor:/home/plataforma/plausr:/bin/ksh
plaadm:/home/plataforma:/bin/ksh

These two users should be part of the same group platafor

platafor:platafor
plaadm:platafor

-----

Similarly, need to create the following users with the mentioned home directories and shell.

heradm:/home/swcomun/release:/bin/ksh
herrtux:/home/swcomun/herrtux:/bin/ksh
swcomun:/home/swcomun:/bin/ksh

These three users should be part of the same group swcomun

group direcotry permission: 755

Behind every Great fortune, there is a crime
1 REPLY 1
Steven Schweda
Honored Contributor

Re: create users but with same home directory?

> Got a request from a user [...]

   Did you get an explanation of why?  If this is the solution, then
what, exactly, is the problem?

> I am not sure if we can create two different users with same directory
> path.

   As I read it, the users do not have the "same directory path", but
one user's home directory is a subdirectory of the other user's home
directory.

>  can we do like this?

   Sure.  It's not clear (to me) that it's a good idea, but you can do
it.  Remaining questions include ownership and permissions.  I would say
that, normally, a user owns his own home directory and the files in it,
and has write permission for it and the files in it.  Thus, if one
user's home directory is _in_ another user's home directory, then things
are not what I'd call normal.  Depending on who owns what, and what the
permissions are, I'd worry about how much trouble one of these users
could cause for the other.