[Ihook-discuss] mkdir as network user
Brought to you by:
fitterhappier
From: Louis M. <lo...@mo...> - 2008-07-24 11:49:55
|
Hi List, I'm using iHook 1.1.1 on 10.5.4 to run our in-house login script from tiger which does a whole bunch of things which i won't go into here. One of things I'm trying to do is create a directory in the NFS home of the user currently logging in. To achieve this we call the login hook from within itself using 'su $1 -c "$loginScriptPath -u $1"' (the -u is used purely for checking if we are running as root or the user) then once we are running as the user i try and run the following command mkdir -p ~/tmp/temporaryitems This will sometime not work at all, sometime will create ~/tmp but not temporaryitems and sometime will work fine with no apparent rhyme or reason. i've also tried mkdir -p /usr/people/$2/tmp/temporaryitems (where $2 is the user name passed from the command above.) with similarly unpredictable results. can anyone see anything fundamentally wrong with what we are trying to do, or know of any leopard related issues with this? Cheers Louis Mustill - Mac Support MPC 127 Wardour Street Soho, London, W1F 0NL DDI - + 44 (0) 20 7494 7902 Main - + 44 (0) 20 7434 3100 Lo...@mo... www.moving-picture.com |