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

Re: [cobalt-users] Another problem after moving /usr to /home



<flash22@xxxxxxx> wrote:
> On Fri, 25 Jan 2002, Rich LaBo wrote:
>
> > After I moved /usr to /home/usr I'm getting errors on all websites when
> > trying to run perl scripts. The error is:
> >
> > Forbidden
> > You don't have permission to access /cgiwrapDir/cgiwrap/secexp/index.pl
on
> > this server.
>
> Did you use -A when you copied the files? (Archive, preserve owner/perms)

I assume he used -pRd, which is what I suggested in an earlier email I sense
that Rich read and followed.  AFAIK, -A is the same as doing -pRd.

> Also, on some machines, cobalt mounts /home with sticky group bit set ,
> look at the options in /etc/fstab, the problem is, you will loose the
> group id's when you copy files because of this....
>
> The 'grpid' option to mount says 'when creating a directory, give it the
> group id of the directory it's in unless it's in a SGID directory already,
> then give it the group of the owner of the directory, if you don't make cp
> override this behaviour, all your ownerships will get snarfed ;P

That's why I always advise to backup files and verify things are working
before deleting the backup.  On most servers I manage all critical files are
backed up nightly at a minimum and even after several years of server admin
experience I still generally backup files/directories before working with
them.

> ps: The sticky groups are needed on these machines so admin's uploading to
> sites will properly set file ownership to their group/site, tho, i think
> proftp can handle this now, i wonder if this option is really still
> needed, it certainly causes interesting things when it interacts with the
> sticky owner (+t) bit on the mail spool....

FWIW, I recently moved /usr/local to /home on a RaQ4 with no problems as a
result.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/