07-07-2009
you don't have to set $HOME manually. It will be set for you upon login. just make the users home directory in /etc/passwd set to /home/user1 if that is what you want. Set it to the real directory if needed. Either way should work though. /home is a cleaner choice.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there,
I wonder if anyone can help me. I run an application on an AIX 4.3.3 machine, for which I need to set up the LIBPATH environment variable for a specific user. I need this to be set up automatically when the user logs in (via Exceed), so I tried setting this in the .profile file.
... (7 Replies)
Discussion started by: durnelln
7 Replies
2. UNIX for Advanced & Expert Users
Hi
I am not able to setup PS1 environment variable in .profile file in my Home directory.I am using RED HAT3 Linux.this is the excercise that i have done
$echo $SHELL
/bin/ksh
$pwd
/home/khan
$ls -l .profile
-rwxrwxrwx
$more .profile
set -o vi
export PS1='khan'
$echo $PS1
$ (13 Replies)
Discussion started by: reachtokhan
13 Replies
3. UNIX for Dummies Questions & Answers
This is on a Solaris 9 box, but I feel like a noob, so I am posting here. When I echo $PATH I get a lot of duplicate paths and extra stuff I don't need. What I want is just what I set up in my home dir under .profile
My login shell=/bin/bash
I checked the following and there are no path... (1 Reply)
Discussion started by: Veestan
1 Replies
4. UNIX for Dummies Questions & Answers
Hi
I need to restrict one user to see only his home directory and
one more directory how i can do this in his profile.
The OS is Red hat linux
I create a user -- tec
and group calle --tec
one the user log in he will see
/home/tec
and he need to see /opt/load
this dirctory... (6 Replies)
Discussion started by: aboorkuma
6 Replies
5. Infrastructure Monitoring
Hello
I really wonder what's trap in etc/profile and in each user .profile.
I try to google for it but I think I have no luck. Mostly hit is SNMP traps which I think it is not the same thing.
I want to know ...
1. What's a "trap 2 3" means and are there any other value I can set... (4 Replies)
Discussion started by: Smith
4 Replies
6. Solaris
Hi all
i am using solaris 10, i am creating user with
useradd -d/home/user -m -s /bin/sh user
user is created with in the following path
/export/home/user (auto mount)
i need the user to be created like this
(/home as default home directory )
useradd -d /home/user -m -s /bin/sh... (2 Replies)
Discussion started by: kalyankalyan
2 Replies
7. Solaris
Hi, guys
I am a super newbie in solaris admin....
Now I got a problem.
Due to the broken of one of Raid system, some user home directory is missing.
Someone advises me to relocate the home directory on the new drive.
I have googled and have tried " usermode -d " command.
But I found a... (3 Replies)
Discussion started by: dr_dw
3 Replies
8. UNIX for Dummies Questions & Answers
What's the purpose of setting the profile in side the script?
however the user when logins, the profile wil be set.
Then why we need to use that explicitly inside the script?
Thanks (1 Reply)
Discussion started by: pandeesh
1 Replies
9. UNIX for Dummies Questions & Answers
what is the functionality of $HOME/.profile? (4 Replies)
Discussion started by: momhef4
4 Replies
10. UNIX for Dummies Questions & Answers
Is there a way to run the profile which is not in $HOME directory? then whats the command for that? (1 Reply)
Discussion started by: SKhan
1 Replies
LEARN ABOUT OPENSOLARIS
updatehome
updatehome(1M) System Administration Commands updatehome(1M)
NAME
updatehome - update the home directory copy and link files for the current label
SYNOPSIS
/usr/bin/updatehome [-cirs]
DESCRIPTION
updatehome reads the user's minimum-label copy and link-control files (.copy_files and .link_files). These files contain a list of files to
be copied and symbolically linked from the user's minimum-label home directory to the user's home directory at the current label.
The Solaris Trusted Extensions dtsession program performs an updatehome whenever a newly labeled workspace is created so that the user's
favorite files are available for use. For example, the user probably wants a symbolic link to such files as .profile, .login, .cshrc,
.exrc, .mailrc, and ~/bin. The updatehome command provides a convenient mechanism for accomplishing this symlink. The user can add files to
those to be copied (.copy_files) and to those to be symbolically linked (.link_files).
OPTIONS
-c Replace existing home-directory copies at the current label. The default is to skip over existing copies.
-i Ignore errors encountered. The default aborts on error.
-r Replace existing home-directory copies or symbolic links at the current label. This option implies options -c and -s. The default is
to skip over existing copies or symbolic links.
-s Replace existing home-directory symbolic links at the current label. The default is to skip over existing symbolic links.
EXIT STATUS
Upon success, updatehome returns 0. Upon failure, updatehome returns 1 and writes diagnostic messages to standard error.
EXAMPLES
Example 1 A Sample .copy_files File
The files that are listed in .copy_files can be modified at every user's label.
.cshrc
.mailrc
.mozilla/bookmarks.html
Example 2 A Sample .link_files File
The files that are listed in .link_files can be modified at the lowest label. The changes propagate to the other labels that are available
to the user.
~/bin
.mozilla/preferences
.xrc
.rhosts
Example 3 Updating the Linked and Copied Files
The .copy_files and .link_files were updated by the user at the minimum label. At a higher label, the user refreshes the copies and the
links. No privileges are required to run the command.
% updatehome -r
FILES
$HOME/.copy_files List of files to be copied
$HOME/.link_files List of files to be symbolically linked
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWtsu |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
SEE ALSO
attributes(5)
.copy_files and .link_files Files in Solaris Trusted Extensions Administrator's Procedures
NOTES
The functionality described on this manual page is available only if the system is configured with Trusted Extensions.
SunOS 5.11 20 Jul 2007 updatehome(1M)