On 22 Jun 1997, Rob Browning wrote:

> > i'm planning to convert a couple of users to a specific uid and guid. I
> > have specified it in my passwd file. Since i have to chown the the users
> > subdirectory by hand... could anybody suggest an awk or perl script(have
> > yet to learn it...) to do it en masse?
> 
> If you're just going to chown their subdirectory (home directory), all
> you may need is "chown -R user.group /home/user", but it depends on
> your situation.

it's fairly easy to find the subdirectory of the users because it's
specified in the /etc/passwd file. I have a bash script to chown the
subdirectory, but it's so tedius to type hundred of users.

regards,

                 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
                 Andre M. Varon         Lasaltech, Incorported
                 Technical Head         Fax-Tel: (034)433-3520
                 e-mail  : [EMAIL PROTECTED]
                 web page: http://www.lasaltech.com/andre.html
                 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=





--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .

Reply via email to