Home directories in packages


 
Thread Tools Search this Thread
Operating Systems HP-UX Home directories in packages
# 1  
Old 05-13-2011
Home directories in packages

Hi,

At my new company they use HP-UX on all the servers.
They use Serviceguard to provide different packages, which are treated as if they where seperate systems. Therefore people log into packages instead of Host, and even the home directories live in the package.

Now there are a different packages on different hosts, and a single LDAP server to store passwd data, which includes the home directory for a user.
But all the packages live in a directory tree in /pkg/[pkgname]/,
and hence the home directory is different on each package...

They "solved" the problem by either creating a single user on each package where everyone logs in, or by creating one passwd entry per user and package, to allow specifying the correct home directory on each package, which leads to me having a different name on each package.

Is this really the way the system should work?
What is the main flaw in the above concept?
Is there an easy way to fix it on a production system, i.e. without any deep intrusion?
# 2  
Old 05-14-2011
Suggest you create an account on the HP ITRC (whether or not you have a maintenance contract) and ask your question there. Serviceguard is a HP-specifice package and outside the scope of unix.com.
# 3  
Old 05-15-2011
Hi Michas,

Quote:
They use Serviceguard to provide different packages, which are treated as if they where seperate systems.
I think this might not be true. MCSG is a HA product. Kinda like you have few servers clustered together to ensure if one goes down, the other remains up. Yes, it has packages but, you do not have operating systems in packages. We have applications on packages. So, the server fails, all the packages (applications) move to the other node. Not the system itself!

Quote:
Therefore people log into packages instead of Host
Yes, we assign an (relocatable) IP to the package so the application users directly login to the applications instead of server. To say it simple, they use the application IP to access it. So, the users are not exactly aware on which server is running it. They need not know either.

Quote:
They "solved" the problem by either creating a single user on each package where everyone logs in, or by creating one passwd entry per user and package, to allow specifying the correct home directory on each package, which leads to me having a different name on each package.
Are you referring to a System user or a Application user? Both are different.

Again, the question here is on security than on MCSG. I assume it works as expected.

If we are talking about application logins and application security, its better we talk to DB/Application team and get more information.

All the best!

-DB

Last edited by vbe; 05-16-2011 at 05:07 AM..
# 4  
Old 05-16-2011
Thanks for the explanation. I still don't quite understand the difference between system and application user.

Lets take an department with 10 employees, and 10 applications each running in its own package. Each application runs under the uid of a user owning all the files. Additionally, each employee shall have an username and password, which he can use to ssh to each of the packages. Is this possible?

At the moment I see only two alternatives. Everyone logs in as one of the 10 users the application in question runs at, which empowers everyone to delete arbitrary data, intentionally or not.
Or creating 100 additional accounts, one for each employee on each package, which among others results in 10 different user names and passwords for each user.

Is it possible to have the same username/password but different home directories on different packages? Or does the home directory has to live outside of the package and therefore won't be moved when the packages moves?

Last edited by michas; 05-16-2011 at 11:54 AM..
# 5  
Old 05-18-2011
IMHO, this is not how it should be. There is no accountability on a system like that.

I undertand, what you are saying about the separate filesysetms.

We run SG and Oracle.

First, users (people) should be logging in to a server with an account that is theirs and only theirs. People should not log into servers as any other user (oracle or root or otherwise). All accounts should be named accounts, there should be no shared accounts.

So, pick a server to host your users (people). Create accounts for every user (real people and application owners [like oracle]) on EVERY server. Make your UIDs and GIDs consistent throughout the whole environment. Lock the users on servers they shouldn't have access to. In fact this could be in a package. You could reuse the LDAP server too (I don't use LDAP).

Use autofs to mount/share users home directories to every server.

>"Therefore people log into packages instead of Host"
You mean, SSH is configured on the package IP? This is ok. I do this sometimes.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to unmount user home directories ??

I've allocated /exports for all user directories by making separate directories under /exports..... :rolleyes: now i need to unmount /exports . But i'm unable to do that.. How can i troubleshoot this issue. Thanks in advance:D (2 Replies)
Discussion started by: vamshigvk475
2 Replies

2. UNIX for Dummies Questions & Answers

home directories not being created by useradd

greetings. I'm using debian lenny, bash shell environment. It is my understanding that by default, the useradd command should create subdirectories under the /home directory, with the same name as the user being created, but this is not happening. I checked useradd -D and it showed, among... (2 Replies)
Discussion started by: fguy
2 Replies

3. Shell Programming and Scripting

List /home directories in a file

Hi, i was looking at a unix paper i found and one of the tasks was to create a file called 'usernames' that contains a list of all directories in /home. This file should be located in the /home/userinfo directory. How would i go about doing this without changing directories from the home... (2 Replies)
Discussion started by: warlock129
2 Replies

4. UNIX for Dummies Questions & Answers

UNIX home directories

Hi All, Could someone help, am a complete beginner when it comes to UNIX. However I have been tasked with investigating automatic creation of UK unix home directories. Is someone able to help? Thanks in advance! (7 Replies)
Discussion started by: zainster
7 Replies

5. Shell Programming and Scripting

Working with multiple home directories.

I need to rename a directory in every home directory on a given workstation. I am a newb to scripting so maybe thats why I cant exactly figure out how to correctly do this. The first thing I need to be able to do to write this script is figure out how to list all the directorys (these are not... (11 Replies)
Discussion started by: trey85stang
11 Replies

6. Solaris

how to find the software packages and root directories

Hi all, i have one requirement to audit the software packages list in unix server. For this the i go through #pkginfo command.But there are lot of packages. i get confused how to find the software packages and root directories paths. Please let me know whether i am going correct way... (1 Reply)
Discussion started by: krishna176
1 Replies

7. Solaris

How to backup /home directories?

I know that how to backup the home directories in sun sparc server. Firstly, umount the filesystem, Secondly, fsck the filesystem, Thirdly, ufsdump the filesystem. Anybody know how to type the full command line backup the /home directory? (1 Reply)
Discussion started by: kingsan
1 Replies

8. UNIX for Dummies Questions & Answers

why /home and /packages are network based?

Does anyone noe why /home n /packages r usually kept remotely..as in network base by administrators?is it because of security reasons??? thanks. (2 Replies)
Discussion started by: rave77us
2 Replies

9. UNIX for Dummies Questions & Answers

Delete old home directories

I have a script that deletes obselete users from /etc/passwd then moves their home directories to another location. After 30 days, I need to delete the home directories that were moved to the new location. I would appreciate any ideas on how to delete the directories after the 30 days? (2 Replies)
Discussion started by: munch
2 Replies

10. AIX

HACMP users home directories

What would be the best approach to configure one external /home f/s in simple two node config and have concurrent access ? (1 Reply)
Discussion started by: zz2kzq
1 Replies
Login or Register to Ask a Question