Solved

Samba permissions

Posted on 1999-01-04
6
275 Views
Last Modified: 2013-12-23
In unix you can delete or overwrite a file that has read only permissions set as long as the the directory grants you permission.  How can I do this through Samba?  I have WRITE = YES, but this is not working.
0
Comment
Question by:lvuu
  • 3
  • 2
6 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1582761
assuming this problem occours on the client side, this is not a samba problem but one of the clients delete program (like DOS's del). These programs require that the file attributes SHR are not set.
0
 
LVL 1

Accepted Solution

by:
cox earned 70 total points
ID: 1582762
Use :
writable = true (or Yes)

You can set the mask of new files using:
create mask = xxxx

You can set the mask of new directories using:
directory mask = xxxx
0
 

Author Comment

by:lvuu
ID: 1582763
I have writeable = yes already set.  I do not have a problem in creating files or directories but in removing them and overwriting them.  I need to be able to overwrite a file with permissions 444 on an NT client through samba.  This is definately possible in UNIX if you have the directory permissions set wide open.
0
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 

Author Comment

by:lvuu
ID: 1582764
ahoffmann, the file attribute R will neccessarily be set because I'm trying to modify read only files.  I have a code repository on UNIX that stores it's files as 444 but I need to be able to update these files even if I do not own them.  This may seem like a rather ludicrous thing to do but I wouldn't be asking if it weren't necessary and possible in UNIX.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1582765
As I said, M$'s del does not allow to delete read-only files.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1582766
try deltree, it ignores read-only, sometimes ...
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help logging in to my router 12 62
Running a 2nd company from the same location 3 58
How to simulate latency? 5 40
Connecting Servers to L2 OR L3 Switch 6 47
If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question