- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: querry about while creating users
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
07-01-2004 08:34 PM
07-01-2004 08:34 PM
querry about while creating users
See while creating the users we are adding an entry for home directory. So now after creating the user with their home any area other than /home/xxx. Now how the new users taking the ownership of some others home dir & files /home/xxx/.exrc
/../../.dt
/../../.csrc etc...
How its happening..
Explian me in deatils .
Thanks in advance.
Shankar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 08:44 PM
07-01-2004 08:44 PM
Re: querry about while creating users
To create an account you:
1) add an entry specifying its home directoy and shell to use in the /etc/passwd file
2) copy the /etc/skel/.[celp]* with cp -p to the new home directory
3) chown -R uid:gid home_directory.
All thes is done by SAM when you use it
.dt etc.. is put at the first X connection
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 08:44 PM
07-01-2004 08:44 PM
Re: querry about while creating users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 11:39 PM
07-01-2004 11:39 PM
Re: querry about while creating users
I tried to understand the question and this is what i would like to share with you.
1. When users are created with home directory i.e. /home/user1 then he has all rights by defualt on that directory.
2. There some .(dot) files in the home directory which are used to set the environment of that User. e.g.
.dt is profile for X windows session
.cshrc set the C Shell environment
.exrc sets VI settings etc. etc.
3. Now if user belongs to group "grp", then all files and directory that belong to this "grp" are allowed to be used by this user as per the group permissions they have.
Don't know if this what you were looking for.
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 11:56 PM
07-01-2004 11:56 PM
Re: querry about while creating users
I reread the question and the first reply ( he has almost judged your question) and now i conclude " How the DOT files are getting created in the User's Home Directory and how come the User is owner of those files? " must be your question ( Correct me If i am wrong )
Ans.: When you create user with -k option with useradd command it copies this template files from /etc/skel directory with user as a owner into his home directory. This template files allows user to customize his environment.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 12:33 AM
07-02-2004 12:33 AM
Re: querry about while creating users
for example
* i am creating one user named user1 with home directory in /home/user1.
* So this home dir of user1 will have the comman set of files with full rights {rw}like .profile,.sh_history,.csrc,.exrc..& so on.
* Now user1 is the owner of that{/home/user1} directory. group of the dir will be which we are giving while creating user. say for ex: users.
*up to now clear.
* We creating some other users with home dir /home/user2.same repeat last setps.
NOW, My Q is how this user2 can be owner of the user1 home directory & inside the files.
Note : all users were created by SAM only.
When I saw the user1 home dir ownership got changed. HOW ???
Shankar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 12:37 AM
07-02-2004 12:37 AM
Re: querry about while creating users
if user1 and user2 belongs to the same group and if the permission on the directory, /home/user1 is group writable, group readalbe and group executable both user1 and user2 has the same rights on /home/user1... hope u understand it now???
so whether user1 is the owner or user2 is the owner, it doesn't make much difference. It all matters in the group permissions.
regds
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 12:44 AM
07-02-2004 12:44 AM
Re: querry about while creating users
Now if newly-created user2 now shows as the owner of user1's files and directories, you've got a much bigger problem. Start with /etc/passwd and verify it's integrity:
pwck
logins -d
There should be no warnings from either command. If logins -d shows user1 and user2 have the same UID, something is seriously wrong with your SAM installation, *OR* /home is NOT a local directory (ie, NFS). If /home is NFS (or part of a NAS system), you'll need to do some extra work to ensure new users have proper ownerships. The reason is that the NFS server knows nothing about your users without special steps being taken.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 01:05 AM
07-02-2004 01:05 AM
Re: querry about while creating users
could you post output from ll commands of all concerned files and /etc/hosts /etc/apsswd and /etc/groups ?
br Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 12:57 AM
07-06-2004 12:57 AM
Re: querry about while creating users
Is there _any_ chance that you are re-using the user id?
SAM assigns a user id at the time the user is created. However, if you choose you can override that id.
For example you create user1 and SAM gives him user id 101.
Then you create user2 and SAM gives you user id 102.
But you decide that you really want user2 to have id 101, you can change user2 to have the 101.
The directories ownership is determined by the user id. So whichever user has say 101, then any directories owned by 101 will have that user's name on them.
The more common form of the problem is to let SAM assign ids for users on different systems and at some point in time, you take user2 from system 2 and restore his files to system 1. If user1 has the same id as user2, then as if by magic, user1 will own user2's files.
It's a simple mistake, but common, but if you are new to UNIX it's easy to make.
Check your /etc/passwd file for duplicate user ids.
-Good Luck