Solved

Samba permissions

Posted on 1999-01-04
6
276 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
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…

730 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