|
From: Danford, R. <ric...@lm...> - 2006-08-28 21:07:54
|
Hi Jamie Let's see if I can explain this better. When creating a new user, Webmin will create the home directory that you enter into this field, meaning the "home directory" field. How do I setup Webmin so that the input in the "username" field is automatically placed at the end of the input entered into the "home directory" field? Example: Username field = jdlow Home Directory field = /usr/home When "create" button is clicked or initiated, the home directory field is auto appended to look like this /usr/home/jdlow. Thus webmin will create the new user account home directory as /usr/home/jdlow, without the manual input of /usr/home/jdlow in the home directory field. There was an incident where a user account was created with $HOME as /usr/home and the 1130 user accounts in /usr/home were moved under the new user account, because of a home directory manual input error. I have added the webmin log where the error occurred to help you better see what our user account maintenance department did, and hopefully understand if it would be possible to auto-append the username to the home directory. We are using a webmin user account create template. The webmin log: 1156343136.18111.0 [23/Aug/2006 10:25:36] xxxxxxxxx xxxxxxxxxxxxxxxxxxxxxx XXX.XXX.XXX.XXX useradmin save_user.cgi "create" "user" "smithd11" copy_files='1' expired='' expirem='1' expirey='' gid='macfcusr' gidmode='0' home='/usr/home/' home_base='0' inactive='180' makehome='1' max='64' min='0' newgid='' others='0' othersh='' passmode='0' real='Daniel Smith, 68907' shell='/bin/csh' uid='532589' uid_def='0' user='smithd11' warn='10' The individual in the Webmin log record above received an error from Webmin stating "Unable to create home directory - already exist. Then the individual in the User account maintenance department got creative, as you can see by the log information below, and the ensuing movehome=1 directive that was given to Webmin. 1156343354.27211.0 [23/Aug/2006 10:29:14] xxxxxxxxx xxxxxxxxxxxxxxxxxxxxxx XXX.XXX.XXX.XXX useradmin save_user.cgi "modify" "user" "smithd11" chgid='1' chuid='1' expired='' expirem='1' expirey='' gid='macfcusr' home='/usr/home/smithd11' home_base='0' inactive='180' max='64' min='0' movehome='1' num='503' old='smithd11' others='0' othersh='' passmode='0' real='Daniel Smith, 68907' shell='/bin/csh' uid='532589' user='smithd11' warn='10' And the other part of the new user account below from the webmin log. 1156343423.3569.0 [23/Aug/2006 10:30:23] xxxxxxxxx xxxxxxxxxxxxxxxxxxxxxx XXX.XXX.XXX.XXX passwd save_passwd.cgi "passwd" "-" "smithd11" admchg='1' change='0' expire='' gid='413' home='/usr/home/smithd11' inactive='180' line='503' max='64' min='0' mod='useradmin' num='503' olduser='smithd11' passmode='3' real='Daniel Smith, 68907' shell='/bin/csh' sline='503' uid='532589' user='smithd11' warn='10' Thanks, Rich Clayton R. Danford Lockheed Martin Enterprise Information Systems Computing and Network Services UNIX Open Systems An idealist believes the short run doesn't count. A cynic believes the long run doesn't matter. A realist believes that what is done or left undone in the short run determines the long run. --Sydney J. Harris _____ From: web...@li... [mailto:web...@li...] On Behalf Of Jamie Cameron Sent: Monday, August 28, 2006 14:13 To: Webmin users list Subject: Re: [webmin-l] User account creation Hi, I don't quite understand what you are trying to do here .. do you want to put a file in the home directory of each new user that contains his UID? Or something different? - Jamie On 28/Aug/2006 09:36 Danford, Rich wrote .. Greetings, How does one utilizing webmin 1.270 on Solaris 8 and 9 in the creation of a user account home directory to have webmin automatically place the new user account ID in the home directory path? TIA Rich Clayton R. Danford Lockheed Martin Enterprise Information Systems Computing and Network Services UNIX Open Systems An idealist believes the short run doesn't count. A cynic believes the long run doesn't matter. A realist believes that what is done or left undone in the short run determines the long run. --Sydney J. Harris |