[6297] in RedHat Linux List
Re: Permissions
daemon@ATHENA.MIT.EDU (Wierdl Mate)
Tue Nov 26 16:39:31 1996
To: Jason Swenson <jason@gunnison.com>
cc: redhat-list@redhat.com
In-reply-to: Your message of "Tue, 26 Nov 1996 10:54:02 MST."
<Pine.LNX.3.91.961126105133.6824A-100000@gunnison.com>
Date: Tue, 26 Nov 1996 15:28:24 -0600
From: Wierdl Mate <matyi@wierdlmpc.msci.memphis.edu>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
> On Tue, 26 Nov 1996, Skull wrote:
>
> > >I just set up a new mail server under the 2.0.0 redhat kernel. I moved
> > >my entire passwd file over from another machine and need to change the
> > >permissions around.
> >
> > >Does anyone know the how to do a mass change owner where all four hundred
> > >clients get changed to the right ownership.
> > Change ownership of what? the mail spool files?? You need to be more specific.
> > try man chown ...
> >
> > Darron
> The change ownership of the users mail directories. The spool mail will
> have to be done as well. I just don't want to go in and change each
> individual account, I want to do a mass change ownership to make each
> owner the correct one when dealing with their individual accounts.
>
>
I am not really sure this is what you want, but if you want to change
the ownership recursively ,say, on 400 homedirectories under /home, I
think this script will do the job (I am assuming the groups are the
same as users, as the default in redhat)
cd /home
for i in *; do chown -R $i.$i $i; done
Of course, if you have users like httpd, ftp, etc then you want to
exclude them with a conditional test. A similar script will do the job
for /var/spool/mail. I do not have one so I do not know what are the
proper ownerships. Maybe this will work
cd /var/spool/mail
for i in *; do chown $i.mail $i; done
Mate
M\'at\'e Wierdl
Department of Mathematical Sciences
University of Memphis,
E-mail: matyi@moni.msci.memphis.edu
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null