Permission inheritance problem

Mertens, Bram mertensb at mazdaeur.com
Fri Nov 18 07:28:56 UTC 2011


>


Mazda Motor Logistics Europe NV, Blaasveldstraat 162, B-2830 Willebroek
VAT BE 0406.024.281, RPR Mechelen, ING  310-0092504-52, IBAN : BE64 3100 0925 0452, SWIFT : BBRUBEBB

-----Original Message-----
> From: redhat-list-bounces at redhat.com [mailto:redhat-list-
> bounces at redhat.com] On Behalf Of kavya
> Sent: vrijdag 18 november 2011 6:38
> To: General Red Hat Linux discussion list
> Subject: Permission inheritance problem
>
> *Hi all*,
>
>           Am working with file permission I have a query,
>
> usually on /mnt normal users will not be having permission to write so I
> gave permission such as
> #chmod 766 /mnt
> #chmod go+t /mnt    I have enabled a sticky bit on /mnt  for group and
> others, as sticky bit is set, even the files and folders under /mnt can not
> be deleted by others even if they have complete permissions and no sticky
> bit is set for files under /mnt, is there any option to allow users to
> delete only particular files ?????

What is it you are trying to achieve?  Are you trying to use /mnt as a regular directory?  Or using /mnt as it is designed, i.e. as a mount point for a remote file system?

If you are mounting a remote filesystem changing the permissions on /mnt won't have the desired effect.

How to grant permissions on a remote file system will depend on the type of that file system, NFS, samba, as well as the remote file system NTFS, ext2,3,4, XFS, etc..

Check man mount for options to set things like UID, GID, file modes etc. depending on which type of mount you are using.

Regards

Bram




More information about the redhat-list mailing list