Tech Support > Operating Systems > Linux / Variants > Automatically Set File Permissions
Automatically Set File Permissions
Posted by blnukem on January 26th, 2004


Hi All

I'm new to the linux scene, I use windows XP for local development to my
Redhat 9 box running apache and I'm using samba to communicate to the Redhat
box.

My linux question is can I automatically set a files permissions. Say I
create a new file with a ".html" extension is there a way for the linux box
to set it permissions to 644 and my .cgi to 755 without manually logging in
and changing it. Please remember that I'm new to linux so please explain
process fully if it can be done.

Thanks in advance
Blnukem


Posted by Noi on January 26th, 2004


On Mon, 26 Jan 2004 12:21:45 +0000, blnukem thoughtfully wrote:

Just a guess that if *.cgi go into one samba directory and *.html go
into another samba directory you could add :

# for the html directory in the smb.conf
create mask = 0644

# for the cgi directory in the smb.conf
create mask = 0755
--
------------------------------------------------------
Linux registered user #302812
using Fedora Core 1 kernel 2.4.22-1.2149.nptl
------------------------------------------------------



Similar Posts