05-05-2010
sandholm
I did find this prior to my posting and was only finding linux specific details. I have refined my search to solaris pam_mkhomedir and am finding what I need. Will update the post accordingly in the next day.
Thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
How do I remove a directory named: $HOME
$ rm "$HOME"
rm: $HOME is a directory
$ rmdir "$HOME"
rmdir: directory "/home/bob": Directory is a mount point or in use (4 Replies)
Discussion started by: natter
4 Replies
2. HP-UX
Hello all,
Most of our users have the same home directory, I know it's weird but it has been like this before me and we don't want to change that for now. When creating a new user using command useradd, it is not allowing me to create it because it is using the home directory of someone else. I... (2 Replies)
Discussion started by: qfwfq
2 Replies
3. UNIX for Dummies Questions & Answers
I am little bit confused when the words "root directory" and "home directory" and "parent directory" are used. Can anybody explains the difference.
I am trying to list the names and protections levels and size of visible files in the root directory
would it be correct if I just typed:
ls... (2 Replies)
Discussion started by: hinman
2 Replies
4. Shell Programming and Scripting
when i have a file and directry starting with same letter and i do a ls it does a recursive ls..
example
output of ls -ltr
-rw-r--r-- 1 root system 0 Jul 16 15:26 a
drwxr-xr-x 2 root system 256 Jul 16 15:26 aa
drwxr-xr-x 2 root system 256... (2 Replies)
Discussion started by: pbsrinivas
2 Replies
5. Shell Programming and Scripting
Hi,
I want suggestion about user home directories, checking. how i could calculate this. I have 200 Users.
if home-dir-of-user1 > 250 MB -> print "OK"
fi
if home-dir-of-user1 > 500 MB > Print "Warning"
fi
if home-dir-of-user1 > 1000 MB > Print "Critical"
fi
Thanks,
Bash (4 Replies)
Discussion started by: learnbash
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. Shell Programming and Scripting
It is required to rename the home dir of some users specifed in the file ids.csv. But the code is not working as expected.
ids.csv have content in the format
id1,name,id2
It displays the expected message , still it is unable to rename the dirs
Find the code below:
#!/bin/ksh... (3 Replies)
Discussion started by: hiten.r.chauhan
3 Replies
8. Shell Programming and Scripting
Hi Guys ,
I want create files Dire and Sub Dire. as same time using variable.
EX:
x1="/hk/Pt/put/NC/R1.txt"
x2="/hk/pt/Put/Ot/NC/RN.txt"
And i want delete all after done with my script.
Thanks (2 Replies)
Discussion started by: pareshkp
2 Replies
9. Solaris
Hi ,
on my Solaris 10 machine user's home directory ownership is being changed automatically to their UID. can any one please tell me whats the reason behind it .
users are there in /etc/passwd file . /etc/shadow file is also there along with nssswitch.conf file and there is no changes made to... (5 Replies)
Discussion started by: usernew
5 Replies
10. HP-UX
Hi all
I wanted to change the home dir for a user, but when using smh :
SMH->Accounts for Users and Groups->Local Users->Modify User
----------------------------------------------------------------------------------------------------------------------------------------------
* Required... (8 Replies)
Discussion started by: fretagi
8 Replies
LEARN ABOUT LINUX
pam_mkhomedir
PAM_MKHOMEDIR(8) Linux-PAM Manual PAM_MKHOMEDIR(8)
NAME
pam_mkhomedir - PAM module to create users home directory
SYNOPSIS
pam_mkhomedir.so [silent] [umask=mode] [skel=skeldir]
DESCRIPTION
The pam_mkhomedir PAM module will create a users home directory if it does not exist when the session begins. This allows users to be
present in central database (such as NIS, kerberos or LDAP) without using a distributed file system or pre-creating a large number of
directories. The skeleton directory (usually /etc/skel/) is used to copy default files and also sets a umask for the creation.
The new users home directory will not be removed after logout of the user.
OPTIONS
silent
Don't print informative messages.
umask=mask
The user file-creation mask is set to mask. The default value of mask is 0022.
skel=/path/to/skel/directory
Indicate an alternative skel directory to override the default /etc/skel.
MODULE TYPES PROVIDED
Only the session module type is provided.
RETURN VALUES
PAM_BUF_ERR
Memory buffer error.
PAM_CRED_INSUFFICIENT
Insufficient credentials to access authentication data.
PAM_PERM_DENIED
Not enough permissions to create the new directory or read the skel directory.
PAM_USER_UNKNOWN
User not known to the underlying authentication module.
PAM_SUCCESS
Environment variables were set.
FILES
/etc/skel
Default skel directory
EXAMPLES
A sample /etc/pam.d/login file:
auth requisite pam_securetty.so
auth sufficient pam_ldap.so
auth required pam_unix.so
auth required pam_nologin.so
account sufficient pam_ldap.so
account required pam_unix.so
password required pam_unix.so
session required pam_mkhomedir.so skel=/etc/skel/ umask=0022
session required pam_unix.so
session optional pam_lastlog.so
session optional pam_mail.so standard
SEE ALSO
pam.d(5), pam(7).
AUTHOR
pam_mkhomedir was written by Jason Gunthorpe <jgg@debian.org>.
Linux-PAM Manual 06/04/2011 PAM_MKHOMEDIR(8)