OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: [suse-security] Change group/owner of dir or files
From: cogNiTioN (cognitionbigfoot.com)
Date: Thu Apr 06 2000 - 16:12:14 CDT


On Thu, 6 Apr 2000, wil van der wee wrote:

> Hi all,
>
> Thanks for all the help I have received from this group.
>
> I have tried to change group owneras root,
> but in all cases it says
> "operation not permitted"
>
> To be be more specific I have a DOS partition where

IIRC, I had this problem, and it was 'cause the vfat (or whatever format
it is in) doesn't support the group/owner permissions. You've got to
specify the valid perms for the whole drive (must be the same for the
whole dos drive)when you mount it. Time to open the /etc/fstab. At the end
of the entry for your DOS drive you'll need to add:
uid=XXX,gid=YYY,mode=ZZZ

(XXX is the user ID of the drive owner (chown), YYY is the ID of the group
the drive belongs to (chgrp), and ZZZ is the ocatal value for the file
permisions (chmod). IIRC, the mode is optional. I have trouble remembering
the ocatal values off hand for chmod, but the man page should help, and
there's a good file on chmod
http://www.attrition.org/security/newbie/unix/
(or something like that)

> I have installed dos OS and a Dos programm, automaticly
> this partition is mounted at start up of Linux in
> /home/dos, but as mentioned before I can not change the
> group or owner. Only when I login as root on a win95/98
> machine it is allowed to execute this dos programm
> installed on the Linux server. Does anyone know what
> I'am doing wrong here.

You want to run programs from the drive? You'll have to mount it with the
'exec' option.

> Thanks for any suggestions, solutions.

All these, and more are covered in 'man mount'. I'd strongly suggest
reading it.
 
/cog

---------------------------------------------------------------------
To unsubscribe, e-mail: suse-security-unsubscribesuse.com
For additional commands, e-mail: suse-security-helpsuse.com