Solved

Samba permissions

Posted on 1999-01-04
6
272 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now