editing a profile on solaris 2.3


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers editing a profile on solaris 2.3
# 8  
Old 08-20-2001
When you create an user, the .profile will not be automatically created under the user's home directory unless you set the ENV variabe in the /etc/skel/local.profile ( This has to be done by root).If you don't have the .profile in your home directory, you can edit one and then put the PATH,EDITOR TERM etc. into .profile. Every time you add any new line into this file, you need to run " . .profile" to make the new entries stored into .profile permenantly, so when you login next time, you don't need to set up again.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

.bash_profile versus .profile of user in Solaris 10

Hi All I am kind of confused, when to use .bash_profile or .profile I have just created a user on a test server, with: useradd -u 103 -d /fretagi -m -s /bin/bash fretagi but now in its home dir I have: -bash-3.2$ ls -al total 14 drwxr-xr-x 2 fretagi other 512 Dec 5 15:54 .... (5 Replies)
Discussion started by: fretagi
5 Replies

2. Solaris

How to give sudo entry in .profile file in Solaris?

Hi all, In Solaris , What entry should I add in my .profile file in home directory so that every time I don't have to give Sudo's full path like /usr/local/bin/sudo as well as /usr/sbin/ping and it will be Great help if you could tell me how to know what should be added. Please Advice.... (2 Replies)
Discussion started by: manalisharmabe
2 Replies

3. Solaris

Video capture and editing on Solaris vs Debian vs Ubuntu

I am interested in doing some heavy video work. I have a ADVC 110 Video capture device, which I am using to capture VHS video tapes, which I will convert on the server to DVD format and burn to DVD's using DVD production software. I will also take the captured video file and split it up in parts... (1 Reply)
Discussion started by: Marcus Aurelius
1 Replies

4. Shell Programming and Scripting

Cron on Solaris not editing.

I am working on Solaris machine. I have to add a cron for some operation, nut in SSH terminal crontab -l shows all related crons, but crontab -e instead of opening vi editor shows some number. Could any body tell what can be issue? (16 Replies)
Discussion started by: nixhead
16 Replies

5. Shell Programming and Scripting

Need help in setting .profile , .cshrc , .exerc ..... in HP-UX , Solaris , AIX-UX

I need help in settings to Hp-UX , Solaris , AIX-UX .. I worked on Linux previously ... now i am working on Hp-UX , Solaris , AIX-UX .. up/down arrow , to see history of previous command (basically to modify ) and few keyboard keys are different ... so i need to set .profile , .cshrc , ... to... (1 Reply)
Discussion started by: girija
1 Replies

6. 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

7. UNIX for Dummies Questions & Answers

Where is the .profile on Solaris 10G

Hi, I am trying to modifying the root user .profile file, but I cannot find it. If I do the command "echo $SHELL", i get /sbin/sh Where is the .profile located at? Sun's doc says the users home folder. I'm logged in as root, but when I go "/home", I don't see it :( Please help (9 Replies)
Discussion started by: annointed3
9 Replies

8. Solaris

Solaris 9 and .profile

I have created a custom nologin shell named nologinksh that looks like this. #!/bin/ksh DATE=`date |sed 's/:.. .*//'` LAST=`last -1 |grep "$LOGNAME.*$DATE"` if ; then echo "Remote logon is not permitted." else export SHELL=/bin/ksh . $HOME/.profile ... (0 Replies)
Discussion started by: woodson2
0 Replies

9. 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
Login or Register to Ask a Question
ADDUSER(8)						      System Manager's Manual							ADDUSER(8)

NAME
adduser - procedure for adding new users DESCRIPTION
A new user must choose a login name, which must not already appear in /etc/passwdor /etc/aliases. It must also not begin with the hyphen (``-'') character. It is strongly recommended that it be all lower-case, and not contain the dot (``.'') character, as that tends to con- fuse mailers. An account can be added by editing a line into the passwd file; this must be done with the password file locked e.g. by using chpass(1) or vipw(8). A new user is given a group and user id. Login's and user id's should be unique across the system, and often across a group of systems, since they are used to control file access. Typically, users working on similar projects will be put in the same groups. At the Univer- sity of California, Berkeley, we have groups for system staff, faculty, graduate students, and special groups for large projects. A skeletal account for a new user "ernie" might look like: ernie::25:30::0:0:Ernie Kovacs,508 Evans Hall,x7925,642-8202:/a/users/ernie:/bin/csh For a description of each of these fields, see passwd(5). It is useful to give new users some help in getting started, supplying them with a few skeletal files such as .profile if they use "/bin/sh", or .cshrc and .login if they use "/bin/csh". The directory "/usr/skel" contains skeletal definitions of such files. New users should be given copies of these files which, for instance, use tset(1) automatically at each login. FILES
/etc/master.passwd user database /usr/skel skeletal login directory SEE ALSO
chpass(1), finger(1), passwd(1), aliases(5), passwd(5), mkpasswd(8), vipw(8) BUGS
User information should (and eventually will) be stored elsewhere. 4th Berkeley Distribution October 23, 1996 ADDUSER(8)