LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-05-2002, 06:12 AM   #1
Nelleh
Member
 
Registered: Apr 2002
Distribution: SuSe/Redhat
Posts: 94

Rep: Reputation: 15
Samba default File Permissions


The situation.

We have a Redhat 7.2 server acting as a file server between a number of windows and Solaris clients with the NT clients using Samba to connect and write data to the shares.

The problem

The account used by the NT machines uses default file permissions of rw-r--r-- which causes problem when a script running on the solaris machine attempts to manipulate the files in question.

The Question

How can I change the default file permissions put in place by the NT account to ensure that other accounts have write access to those files? (all the accounts in use are in the same group so just being able to set the group permissions would I guess solve the problem).

My apologies in advance if this is a simple question I "should" know the answer to
 
Old 06-05-2002, 10:54 AM   #2
kill-hup
Member
 
Registered: Aug 2000
Location: NY - USA
Distribution: Slackware
Posts: 109

Rep: Reputation: 15
In smb.conf you can set either per-share "create mode"s. This should solve your problem.
 
Old 06-06-2002, 05:21 AM   #3
Nelleh
Member
 
Registered: Apr 2002
Distribution: SuSe/Redhat
Posts: 94

Original Poster
Rep: Reputation: 15
Thank you, thats done the job nicely.
 
Old 06-06-2002, 07:22 AM   #4
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
you have create mask = 0664
or
create directory = 0775
numbers may change
 
Old 06-06-2002, 07:52 AM   #5
Nelleh
Member
 
Registered: Apr 2002
Distribution: SuSe/Redhat
Posts: 94

Original Poster
Rep: Reputation: 15
On the share in question I had neither (samba is still a scary Lion round this neck of the woods, it looks bloody smashing, but one wrong move and I get mauled to death )

I added create mode = 0777 to the parameters of the share and files created by the NT accounts are now being created rw-rw-rw- which is just what I was trying to do.

I will be having a look at those settings as well, currently we have the extremely fun task of being Windows monkeys trying to learn Linux/Samba in a live operational environment which makes tinkering an interesting occupation.
 
Old 06-06-2002, 08:06 AM   #6
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
btw
0777 should give you rwxrwxrwx permissions
 
Old 06-06-2002, 08:09 AM   #7
Nelleh
Member
 
Registered: Apr 2002
Distribution: SuSe/Redhat
Posts: 94

Original Poster
Rep: Reputation: 15
Thats what I thought, I assumed that as they are not executable files that they were not granted execute permissions or am I just giving Linux too much credit?

My method of working at this stage is to get the solution working first and then worry about getting it working correctly

Last edited by Nelleh; 06-06-2002 at 08:11 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Restore all default file permissions pauliehaha Linux - General 4 05-25-2011 11:56 PM
Change default file permissions bmorel Linux - Newbie 4 05-08-2005 07:06 PM
Default directory and file permissions kodon Slackware 10 08-08-2004 08:27 AM
Is it possible to create default file permissions? Thermodynamic Linux - Software 3 04-09-2004 05:28 PM
default file permissions for web server AZDAVE Linux - Security 3 11-13-2003 03:22 PM


All times are GMT -5. The time now is 10:22 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration