How to set variable for users with no home directory?


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
How to set variable for users with no home directory?

Hi

I need to set
Code:
$HISTFILE

for a user with no home directory. How to go about it because this user does not have a
Code:
.profile

file.
# 2  
Hi,

What OS and what shell?

Does the user actually login - if so why don't they have a home directory?

Presumably the user will end up with "/" as a home directory?

Regards

Gull04
# 3  
Its
Code:
HP-UX 11.31

, but I did find its home directory and the
Code:
.sh_history

file for that user, but I did not find any evidence that that particular user did some malicious thing. Is that mean that I have to enable auditing?
# 4  
As asked by Gull04, why don't they have a home directory? Is that by accident or by design?
# 5  
Hi,

Why do you think the user did something malicious, if you do - the account should immediately be disabled and probably change the "root" password at a minimum.

You should then be checking logs - for peace of mind at the very least.

Again, why doesn't the user have a home directory set.

Regards

Gull04
# 6  
I'm sure if a user did malicious things, he would delete the history file or forge it easily.
History is not auditing.

Only why to track that is by employing auditing, which i never turned on on HPUX v3.
But i did find a document describing it with a lot of information.
https://support.hpe.com/hpsc/doc/pub...r_na-c02899022

Be careful playing with audit, do not just do it on production systems, use test systems first.
Audit configuration requires careful planning and implementation.

Hope that helps.
Regards
Peasant.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Permissions on a directory in /home for all users
lost.identity
Hi, I have created a shared directory on /home, where all users on a certain group have read, write and execute permissions. I did this using chmod -R g+rwx /home/shared/ The problem is, when a particular user creates a directory within /home/shared, other users are not able to write to...... UNIX for Advanced & Expert Users
8
UNIX for Advanced & Expert Users
Common Home directory for different users??
Luky
Hi Guys, I have a problem with configuring a server. this is a solaris 10 with sparc platform. I have setup so that the server is Authenticating through NIS but I dont want the server to Mount the Home directories. The users need to logged in through the CDE/display. I have over 200 users...... Solaris
2
Solaris
lost /home/directory for users
blizzgamer
I'm using HPUX 11i. The other day a user logon to the workstation and was not able to find the /home/directory (tom is the directory) I login myself and it is the same thing. The home directory is on the server, so I was thinking of using sam to map it again. does anyone know how to do it...... UNIX for Dummies Questions & Answers
5
UNIX for Dummies Questions & Answers
Home Directory Jail for Users
mz043
Hi, I am looking for a shell script (or any other way), that puts a user in a home directory jail. So for example, I have a user named richard and I don't want him wandering outside /usr/users/richard. I don't want him to cd to anywhere including cd .. Somebody said you can do that with...... UNIX for Dummies Questions & Answers
3
UNIX for Dummies Questions & Answers
Profiles for users without home directory
naina
Hi I want to know which profile will be called when a user without home directory is created. When I created a user without home directory(by setting in /etc/default/useradd), the user is able to login directly into the main "/" folder but with only read permissions. Thanks naina... UNIX for Dummies Questions & Answers
3
UNIX for Dummies Questions & Answers