06-14-2005
Quote:
Originally Posted by sravusa
I want to add a default path /bin/mycommands along with others to be loaded as default path for all new accounts created on my system . With out the new accounts not having to change thie manually to /bin/mycommands.Do I change the /etc/profile ? is there any better way?
Please throw some light.
Thanks
No. Changing /etc/profile (or other conterparts for other shells) will have the change visible to all existing user accounts, not only the "new accounts". /etc/skel (for linux, check for other Unix flavor) is the place to look at.
Tom
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i wrote a script and is running. I add the path bin to variable PATH, i.e.
PATH=$PATH/bin. i add this to PATH in order to run the script in any path working directory. Thats ok. The problem is as son as i close the session and start a new session, changes are lost. How can i tell the shell or... (1 Reply)
Discussion started by: alexcol
1 Replies
2. Windows & DOS: Issues & Discussions
hello everybody,
I am trying to find the path of the Recycle Bin. I know that it's a temporary storage place, but it should have a path that we can refer to.
I want to know it because I sometimes use cygwin to work on Windows, and when you delete something with it, it's gone. I just checked... (4 Replies)
Discussion started by: milhan
4 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I install java at Fedora Core. So to run any java applications i have to write the complety path. For example,
/usr/java/jre1.5.0_11/bin/java "javafile"
I want to write only "java" but it said "command not found".
How i fix this?
Thank you very much
Lakis (4 Replies)
Discussion started by: Lakis
4 Replies
4. Shell Programming and Scripting
I have a variable called PATH that contains a path
example: /Users/rtipton/Desktop/testusers/test
I need a sed command to set a variable called USER to the last directory name in that path
PATH="/Users/rtipton/Desktop/testusers/test"
and from that PATH i need USER to = test
I know sed... (4 Replies)
Discussion started by: tret
4 Replies
5. Solaris
Hi all,
I am trying ping command in SUN v240 server but it is not working
but when i am using the full path
/usr/sbin/ping <ip address> then it is working.
how to set the path of ping command so that by simply typing
ping <ip address>
it should work ?
Plz help me out:( (7 Replies)
Discussion started by: saurabh84g
7 Replies
6. Shell Programming and Scripting
Hello,
I need to execute the following command in a script:
/usr/bin/ssh 205.21.1.1 vmware-cmd -v /home/virtual machines//Machine.vmx"createsnapshot Weekly_Backup >/dev/null 2>&1
The problem is that there is a space between virtual and machines and when I run the script I get no such... (2 Replies)
Discussion started by: mojoman
2 Replies
7. OS X (Apple)
Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself.
But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies
8. HP-UX
Hello friends,
I need to set PATH variable for all HP-UX users. I tried to implement it using /etc/profile and /etc/sshrc both none of them work.
I don't see sshrc file anywhere.
Please advise!
TIA (4 Replies)
Discussion started by: prvnrk
4 Replies
9. UNIX for Dummies Questions & Answers
Hi,
Now I have: /Users/okn/bin for my private shell scripts.
How do I add /Users/okn/bin to my PATH?
The PATH is right now:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
The .bash_profile doesn't state anything about a PATH (yet).
I read about this:
PATH=/bin:$PATH
export PATH
or... (1 Reply)
Discussion started by: OmarKN
1 Replies
10. Red Hat
Hi Expert,
I'm having grub problem here:
grub> root
(hd0,0): Filesystem type is ext2
grub> setup
Error 11 : Unrecognized Device String
I try install boot loader follow the instruction from 26.2. Booting into Rescue Mode
It says : select Continue, it attempts to mount your file... (4 Replies)
Discussion started by: justbow
4 Replies
LEARN ABOUT OSF1
convuser
convuser(8) System Manager's Manual convuser(8)
NAME
convuser - convert user profile information between BASE and ENHANCED formats
SYNOPSIS
/usr/tcb/bin/convuser -a [-c] [-i] [-n] [-u] [-R] [-U uid] [-M] [-T template] [-[qv]] [users]
/usr/tcb/bin/convuser -b [-T template] [-[qv]] [users]
/usr/tcb/bin/convuser -d [-n] [-M] [-[qv]] [users]
/usr/tcb/bin/convuser -H
FLAGS
-a Converts from BASE to ENHANCED authentication format. This option is incompatible with the -b and -d options. If none of -a, -b,
or -d have been supplied, then -a is implied by any of -c, -i, -n, -u, -R, or -U.
-b Converts from ENHANCED to BASE authentication format. This option is incompatible with the -a and -d options. The conversion in
this case is bring any compatible passwords from the extended profile back to the BASE profile.
-c Causes the conversion for -a to create new extended profiles only. If the -c option is given, existing extended profiles will
remain unchanged.
-d Removes any extended profiles which do not still have corresponding BASE profiles.
-i Cause the conversion for -a to invalidate the encrypted password field in the BASE profile if the change to the ENHANCED profile is
successful.
-n Cause the -a and -d conversions to include NIS passwd.byname map entries in the list of BASE profiles for consideration.
-q Cause non-error output to be suppressed.
-u Cause the -a conversion to leave the migrated passwords still usable. The default is to pre-expire them.
-v Cause more verbose reports of progress to be given.
-M Work on NIS master map files rather than the local profiles. This option works on NIS master hosts only.
-R Cause newly-created extended profiles to be written only to the /tcb/files directory tree (v4 only).
-T template
Causes the creation of new extended profiles to use user template as the template for the account default values. Causes the con-
version for -b to consider only accounts with template as the associated account template.
-U uid Causes newly-crated extended profiles with UID values less than uid to be written to the /tcb/files directory tree (v4 only).
-H Cause an extended usage message to be given and no other processing to be performed.
DESCRIPTION
The convuser utility is used to provide migration between BASE and ENHANCED security levels, as well as to provide support for the use of
existing account-creation scripts. The most common uses are to clean up dangling extended profiles (those without corresponding BASE pro-
files) after the removal of the base profiles, and to create new extended profiles to correspond to newly added base profiles.
EXAMPLES
To remove dangling profiles:
# convuser -d
# convuser -Md To finish the addition of new accounts on a system using NIS to supply the extended profile information:
# convuser -iu
# convuser -Miu To finish the addition of new accounts on a system using NIS to supply the extended profile information:
# convuser -iun
RELATED INFORMATION
Files:
prpasswd(4), authcap(4)
Security delim off
convuser(8)