Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

new user .profile

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
i am using v. 4.3.

someone else had already created a user; lets call it "usr1". i logged in as "usr1" then su-ed as root. (root login has been disabled.) i then used smit to create an new user, "usr2".

this seemed to work ok until i noticed usr2 was using usr1's .profile. there was no mention of usr1 in smit during the creation of usr2. why would this be happening?

i made a simple menu in usr2's .profile to run simple tasks for an end user so i need a separate .profile.

thanks for all your help.
 
My guess (and I stress that's what it is) is that the .profile for usr1 is the default one set up automatically. usr2's would presumably be the same until you edit it in usr2's home directory. Alternatively, are you sure that both users aen't sharing the same home directory? HTH.
 
Check to see if usr2 even has a .profile. If it isn't you are probably running the default profile located at /etc/profile. If you don't want to run this, you'll have to break out whatever /etc/profile is doing that is special for usr1 and put it in usr1's .profile (where it should be anyway)

If usr2's .profile is identical to usr1's profile, I believe the "default" profile is copied from /etc/security/.profile. If this is the case, feel free to edit usr2's .profile and do whatever you want.

 
How did you 'su'? Did you 'su -' ??
If not, this might explain the odd effects.
 
usr2 does have its own .profile. in fact, i have already added the "menu" to the end of it.

usr2 also has its own home directory, /usr/usr2.

i only used su from usr1 login to root to create usr2. i login to usr2 from the login prompt.


 
usr2 does have its own .profile. in fact, i have already added the "menu" to the end of it.

usr2 also has its own home directory, /usr/usr2.

i only used su from usr1 login to root to create usr2. i login to usr2 from the login prompt.


(sorry about the handle in the last note; i guess i didnt login when i posed the question. but yes, i am xavier42, too.)
 
Who's the owner and what are the permissions of usr2's .profile?
 
never noticed this but the group for usr2 is "system." would that cause it to run a different .profile?

-rw-r--r-- 1 usr2 system 472 Apr 13 15:47 .profile
 
I don't know. I don't think so. Is usr2's primary group system? I think the reason why usr2's .profile is owned by system is because either you set him up as an administrative user and didn't specify another primary group or you specified system as the primary group without setting usr2 as an administrative user.

Did you set up this user through smit or did you do it from the command line? And when you su'd to root, did you do su - root or just su root?

And I notice that your mode is 644, not 744. My .profiles are created by smit with a mode of 744. I'm wondering if that is your problem. Try changing the mode to 744.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top