11-14-2008
Jlliagre,
I have updated the script to my needs. Can you please let me know whether i am right or wrong.
Note - My Home directories are in /users mountpoint.
I am writing an executable sheel script called /etc/auto_home_create
#!/bin/ksh -p
#
# Find home directory; create directories under /users
#
hdir=$(echo ~$1)
if [[ "$hdir" != /users/* ]]
then
# Not a user with a valid home directory.
mkdir /users/$1 #(/users is a world writeable dir)
fi
exit
Would this script solve my need? Pardon my ignorance,if this is wrong.
Thanks
HG
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
SCO OpenServer 5.05
Has anyone ever received this error when attempting to
change/assign a user password?
#ypasswd
=======================================
yppasswd: (host name) is not running yppasswd daemon
Password request denied.
Reason: Remote password change request denied.... (2 Replies)
Discussion started by: gseyforth
2 Replies
2. Solaris
Hi,
I need help urgently.
I've been running NIS for 4 years without problem. And just two weeks ago, all my users are unable to change their password which never happens before.
When we issue passwd or yppasswd, this is what we get
passwd : Changing password for Jennifer
Enter existing... (2 Replies)
Discussion started by: jennifer
2 Replies
3. Solaris
Now I face a problem in changing the NIS passwd,I have no idea,want you to help me!
Today I add some user in the NIS master server ,I "vi" /etc/passwd &/etc/shadow,add user account and password by hand(shadow----no password ,only eight ":").
when finsh,I login ,system told me to input a password... (3 Replies)
Discussion started by: dlsjm
3 Replies
4. Shell Programming and Scripting
Hi ,
is there anyway of implementing password aging in NIS?
I would say thanks in advance.
Thanks and regards,
HAA (1 Reply)
Discussion started by: HAA
1 Replies
5. Solaris
Hi
Our nis server running on Sun solaris 8 operating system.
I have added a new user in the nis passwd file
& when I am trying to update the file from nis server by using
following command:
# cd /var/yp
# make
updated passwd
It updates the passwd file but does not come back to command... (3 Replies)
Discussion started by: dolphin
3 Replies
6. Red Hat
I have a RHEL 5 NIS server. It seems to be working fine except for password ageing. If passwords expire in the shadow file then users are still able to log on with no problems and no notifications. Does anyone know how to turn password ageing on through NIS? (4 Replies)
Discussion started by: darren.wyatt
4 Replies
7. Solaris
Greetings All,
I am newbie to Unix. Have the following issue:
Users are unable to change their password themselves.
After they ash to a specific box (NIS Account is extended to that box)and then su as them with an assigned password and run command to change the password they get this error:
... (2 Replies)
Discussion started by: cardiner
2 Replies
8. Solaris
Hi
Any body knows how to prompt user to change password on first login in a Solaris NIS client.
Thanks
HG (3 Replies)
Discussion started by: Hari_Ganesh
3 Replies
9. Red Hat
Hi,
I am running NIS server on redhat linux 5 and I want to implement password restrictions for the yppasswd, how can I do it.Please help me.
I can implement password restriction for passwd by configuring /etc/pam.d/system-auth and setting crack_lib.so but I don't know how to implent the same... (3 Replies)
Discussion started by: ktrimu
3 Replies
10. Shell Programming and Scripting
Hi Expert,
I have environment where password is locally managed, not NIS, not LDAP, not Centrally managed.
In order to access to this environment I have to use Jump Box, and only from jumpbox I can login to every host. I can't login direct from inside one host within that environment to... (1 Reply)
Discussion started by: regmaster
1 Replies
LEARN ABOUT DEBIAN
sss_userdel
SSS_USERDEL(8) SSSD Manual pages SSS_USERDEL(8)
NAME
sss_userdel - delete a user account
SYNOPSIS
sss_userdel [options] LOGIN
DESCRIPTION
sss_userdel deletes a user identified by login name LOGIN from the system.
OPTIONS
-h,--help
Display help message and exit.
-r,--remove
Files in the user's home directory will be removed along with the home directory itself and the user's mail spool. Overrides the
configuration.
-R,--no-remove
Files in the user's home directory will NOT be removed along with the home directory itself and the user's mail spool. Overrides the
configuration.
-f,--force
This option forces sss_userdel to remove the user's home directory and mail spool, even if they are not owned by the specified user.
-k,--kick
Before actually deleting the user, terminate all his processes.
THE LOCAL DOMAIN
In order to function correctly, a domain with "id_provider=local" must be created and the SSSD must be running.
The administrator might want to use the SSSD local users instead of traditional UNIX users in cases where the group nesting (see
sss_groupadd(8)) is needed. The local users are also useful for testing and development of the SSSD without having to deploy a full remote
server. The sss_user* and sss_group* tools use a local LDB storage to store users and groups.
SEE ALSO
sss_groupadd(8), sss_groupdel(8), sss_groupmod(8), sss_groupshow(8), sss_useradd(8), sss_usermod(8).
AUTHORS
The SSSD upstream - http://fedorahosted.org/sssd
SSSD
03/04/2013 SSS_USERDEL(8)