Sponsored Content
Top Forums Shell Programming and Scripting sourcing .profile for other users Post 302531013 by Franklin52 on Wednesday 15th of June 2011 04:00:39 PM
Old 06-15-2011
What are the names of the new and old directories of the users?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

changed .profile but didnt ./.profile, yet reflected changes

hi , i added ls -F to .profile. and i need to do ./.profile for the effect to take effect BUT i didnt and YET the next day when i came to work and log in, the changes took effect. i am on aix. please explain.. thanks (4 Replies)
Discussion started by: yls177
4 Replies

2. Shell Programming and Scripting

users with same .profile

guys i have a unix user (say "x") which is also an application owner ..thru this user i manage most (90 %) of my tasks related to application i.e application down/up,processes stop/start etc..in short i manage my "tuxedo" via this user.. now i want a new user to be created (on my name) which... (7 Replies)
Discussion started by: abhijeetkul
7 Replies

3. Solaris

rootsh on Solaris 10 is not sourcing root's .profile

I'm attempting to setup rootsh on Solaris 10 to log the activity of users who require root access. However it does not appear to be sourcing root's .profile file even when run with the '-i' option. I was wondering if anybody else has run into this and might have a solution. Thank you. (9 Replies)
Discussion started by: kungfusnwbrdr
9 Replies

4. UNIX for Advanced & Expert Users

How can I get sudo -u <username> to load that users profile on HP-UX

I am running a serverapplication on a HP-UX machine where I need to handle some of the commands as a specified user called "druser". When I log on as this user with the command; sudo -u druser -sit starts an instance of the shell as that user. However, it doesn't load that users .profile from... (1 Reply)
Discussion started by: ukiome
1 Replies

5. AIX

SSH and a users .profile

How do I get a command like "ssh Theuser@host date" to execute the /home/Theuser/.profile before executing the "date" command? (5 Replies)
Discussion started by: IL-Malti
5 Replies

6. Shell Programming and Scripting

Users who desire to have their .profile executed must explicitly do so in the crontab entry. Why?

The .profile file should be read when the user logs in. So, there should be no need to execute .profile file again in a cron job (since the cron job is run after the user logs in). Doesn't the cron require login from the user. Then, from where does the cron execute? Please help!! (1 Reply)
Discussion started by: thulasidharan2k
1 Replies

7. Solaris

Remove a given profile from a users account

Hi Guys, I was studying RBAC and I gave a profile to a user . I have not seen anywhere that shows how to remove the profile from the users account. Can anyone show me how to remove a given profile from a users account? Thanks alot guys. (2 Replies)
Discussion started by: cjashu
2 Replies

8. UNIX for Dummies Questions & Answers

switch user (su) not sourcing the profile

Usually in solaris/Linux servers , when you do an su - username (space before and after the hyphen) the user's .profile should get sourced. But in the below linux machine it is not. As you see below ORACLE_HOME variable is not being set. # uname -a Linux revaltb214 2.6.18-238.el5 #1 SMP Sun... (7 Replies)
Discussion started by: John K
7 Replies

9. HP-UX

Create a new user from using existing users profile

Hello, Just wanting to know if it is possible. Also I am new to command line. I am running 5.1b, if that matters. Thanks in advance (10 Replies)
Discussion started by: bcha
10 Replies

10. AIX

Do not allow bypassing users .profile

Hello, I find out that there is a way from putty to pass a command to your shell when trying to log in to a server and bypass .profile. Actually you can do this if you open a bash shell. The command to bypass .profile is the following: ssh -t hostname "bash --noprofile" Is there a way to... (32 Replies)
Discussion started by: omonoiatis9
32 Replies
conflict(8mh)															     conflict(8mh)

Name
       conflict - search for alias/password conflicts

Syntax
       /usr/lib/mh/conflict [ -help ] [ -mail name ] [ -search directory ] [ aliasfiles ...  ]

Description
       The  program checks to see if the interface between MH and transport system is in good shape.  It also checks for maildrops in which do not
       belong to a valid user.	It assumes that no user name will start with a dot (.)	and thus ignores files in which begin with a dot.

       The program checks the entries in the specified alias files.  It parses the entries in the same way that  would,  and  outputs  any  errors
       which  it  finds.   The	program can be used to check the entries in a user's personal alias file, or in the system alias file, If no alias
       file is specified, checks the system alias file.

       The program also checks the file for entries which do not belong to a valid user, and for users who do not have a valid group  number.	In
       addition, duplicate users and groups are noted.

       The program should be run under or whenever system accounting takes place.

Options
       -help	 Prints a list of the valid options to this command.

       -mail name
		 Mails the results to the specified name.  Otherwise, the results are sent to the standard output.

       -search directory
		 Searches  directories	other than and reports anomalies in those directories.	The -search switch can appear more than once in an
		 invocation to with different directories named.

Files
       The system customization file.

       The system password file.

       The system group file.

       Program used to mail results, if the
		 -mail option is used.

       Directory containing users' maildrops.

See Also
       mh-alias(5mh), cron(8)

																     conflict(8mh)
All times are GMT -4. The time now is 05:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy