How to set variable for users with no home directory?

Tags
directory, home, hp-ux, users, variable

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 1 Week Ago
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  
Old 1 Week Ago
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  
Old 1 Week Ago
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  
Old 1 Week Ago
As asked by Gull04, why don't they have a home directory? Is that by accident or by design?
# 5  
Old 1 Week Ago
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  
Old 1 Week Ago
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 to Reply

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

Similar Threads More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Permissions on a directory in /home for all users lost.identity UNIX for Advanced & Expert Users 8 10-28-2014 11:09 AM
NIS created users without a home directory Junaid Subhani Emergency UNIX and Linux Support 9 06-02-2014 05:47 AM
Get Home Directory for Users in Login Hook Script blondepianist Shell Programming and Scripting 1 11-17-2011 01:28 PM
close ssh users to the home directory jeszi AIX 1 07-23-2011 01:18 PM
SSH lock users to the Home Directory getrue Red Hat 10 07-06-2011 08:51 AM
Unix set home directory beckywatson UNIX for Dummies Questions & Answers 1 02-05-2011 05:28 PM
script to check for a directory in /home for all users barrydocks Shell Programming and Scripting 8 12-30-2010 09:37 PM
about the access permission of users home directory cqlouis UNIX for Advanced & Expert Users 1 03-11-2010 01:06 PM
Common Home directory for different users?? Luky Solaris 2 12-14-2009 12:47 PM
find home directory paths for all users a2156z Solaris 2 03-12-2009 07:26 AM
lost /home/directory for users blizzgamer UNIX for Dummies Questions & Answers 5 01-27-2009 07:45 PM
Home Directory Jail for Users mz043 UNIX for Dummies Questions & Answers 3 04-18-2007 02:14 PM
Profiles for users without home directory naina UNIX for Dummies Questions & Answers 3 02-05-2006 04:41 AM
Monitor which users enter my home directory mnpradeep Programming 1 03-21-2002 05:08 AM
Restrict users to ther home directory alfabetman UNIX for Dummies Questions & Answers 1 10-04-2001 03:31 PM
All times are GMT -4. The time now is 11:11 AM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.