"Larry Shatzer, Jr." <fugazi@exhibit-a.org> wrote:
Is there a way to have the user's home dir be mode 711? Is there some option somewhere I am missing? Thanks
AFAIK there is no such option, but you can use a small shell script like this: #!/bin/sh useradd "$@" || exit 1 while [ $# -gt 1 ]; do shift; done chmod 711 "/home/$1" Call it something like "myuseradd" and invoke it with the same arguments you would use for the original useradd. Exception: This simple script assumes that a users home directory is always /home/USERNAME. You can extend it to recognize the -d option and read the defaults in /etc/defaults/useradd, if needed. Eilert -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Eilert Brinkmann -- Universitaet Bremen -- FB 3, Informatik eilert@informatik.uni-bremen.de - eilert@tzi.org - eilert@linuxfreak.com http://www.informatik.uni-bremen.de/~eilert/ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (1)
-
eilert@informatik.uni-bremen.de