[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Mass Directory



There are lots of ways, here's one that isnt too bad

awk 'BEGIN {FS=":"} $4 == 100 {print $1}' /etc/passwd | while read user ;
do mkdir ~$user/public_html ; chown $user ~$user/public_html ; done

(that's all one line)

this will take all the users that have a gid of 100 (which all the user
accounts on my box do..) and make the public_html dir and chown it so they
own it.

-Adam

On Tue, 18 Jan 2000, Myles Agnew wrote:

  | Date: Tue, 18 Jan 2000 09:25:06 +1100
  | From: Myles Agnew <myles@xxxxxxxxxxxxxxx>
  | Reply-To: cobalt-users@xxxxxxxxxxxxxxx
  | To: cobalt-users@xxxxxxxxxxxxxxx
  | Subject: [cobalt-users] Mass Directory
  | 
  | Hi All,
  |        Does anyone have any great idea's on how I can make a public_html directory in every users
  | directory?
  | 
  | Regards
  | 
  | Myles
  | 
  | myles@xxxxxxxxxx
  | 
  | 
  | _______________________________________________
  | cobalt-users mailing list
  | cobalt-users@xxxxxxxxxxxxxxx
  | http://list.cobalt.com/mailman/listinfo/cobalt-users
  |