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
unburden-home-dir
UNBURDEN-HOME-DIR(1) User Commands UNBURDEN-HOME-DIR(1)
NAME
unburden-home-dir - unburdens home directories from caches and trashes
SYNOPSIS
unburden-home-dir [ -n | -u | -f filter ]
unburden-home-dir ( -h | --help | --version )
DESCRIPTION
unburden-home-dir unburdens the home directory from files and directory which cause high I/O or disk usage but are neither important if
they are lost, e.g. caches or trash directory.
When being run it moves the files and directories given in the configuration file to a location outside the home directory, e.g. /tmp or
/scratch, and puts appropriate symbolic links in the home directory instead.
OPTIONS
-f just unburden those directory matched by the given filter (a perl regular expression) -- matches the already unburdened directories
if used together with -u.
-F Do not check for files in use with lsof before (re)moving files.
-n dry run (show what would be done)
-u undo (reverse the functionality and put stuff back into the home directory)
-h, --help
show this help
--version
show the program's version
EXAMPLES
Example configuration files can be found at /usr/share/doc/unburden-home-dir/examples on Debian-based systems and in the etc/ directory of
the source tar ball.
FILES
/etc/unburden-home-dir, /etc/unburden-home-dir.list, ~/.unburden-home-dir, ~/.unburden-home-dir.list, /etc/default/unburden-home-dir,
/etc/X11/Xsession.d/95unburden-home-dir
Read /usr/share/doc/unburden-home-dir/README on debianoid installations or README in the source tar ball for an explanation of these files.
SEE ALSO
corekeeper (http://openvswitch.org/cgi-bin/gitweb.cgi?p=corekeeper), autotrash(1), agedu(1), bleachbit(1).
For du(1)-like but more comfortable tools, see ncdu(1) (text-mode), baobab(1) (GNOME), filelight(1) (KDE), xdiskusage(1) (X tool calling
du(1) itself), or xdu(1) (X tool reading du(1) output from STDIN).
AUTHOR
Unburden Home Dir is written and maintained by Axel Beckert <beckert@phys.ethz.ch>
LICENSE
Unburden Home Dir is available under the terms of the GNU General Public License (GPL) version 2 or any later version at your option.
Unburden Home Directory May 2012 UNBURDEN-HOME-DIR(1)