LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-16-2011, 05:31 AM   #1
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Rep: Reputation: 18
samba does not keep windows attributes (read only files as read only for example)


hello
I want my samba to keep my windows attributes exactly what the user setted in windows I mean if it has read only file in win box and copy it to samba share ,samba keep it read only and same for other attributes but it does not do it now with my configuration:

Quote:
[global]
workgroup = DOMAIN
server string = File Server
interfaces = lo, eth0, tap0
bind interfaces only = Yes
passdb backend = ldapsam:ldapi://%2fvar%2frun%2fslapd%2fldapi
log level = 1
syslog = 0
log file = /var/log/samba/%m
max log size = 50
smb ports = 137 138 139 445
name resolve order = wins bcast hosts
time server = Yes
printcap name = CUPS
wins support = Yes
ldap admin dn = cn=ebox,dc=RAA,dc=raad,dc=com
ldap group suffix = ou=Groups
ldap idmap suffix = ou=Idmap
ldap machine suffix = ou=Computers
ldap suffix = dc=RAA,dc=raad,dc=com
ldap ssl = no
ldap user suffix = ou=Users
full_audit:failure = none
full_audit:success = connect opendir open disconnect unlink mkdir rmdir rename
map acl inherit = Yes
map hidden = Yes
map system = Yes
vfs objects = full_audit

[Archive]
comment = Archive
path = /home/samba/shares/Archive
valid users = MYUSERS
admin users = MYUSERS
write list = MYUSERS
read only = No
force create mode = 0660
force directory mode = 0660
vfs objects = full_audit, recycle
recycle: directory_mode = 0700
recycle: excludedir = /tmp|/var/tmp
recycle: keeptree = Yes
recycle: repository = /home/.Recycles/%U/%I_%S_%T_RecycleBin
recycle: versions = Yes
[ShareALL]
comment = SHARE FOR ALL
path = /home/samba/shares/ShareALL
valid users = MYUSERS
write list = MYUSERS
force create mode = 0660
force directory mode = 0660
vfs objects = full_audit, recycle
recycle: directory_mode = 0700
recycle: excludedir = /tmp|/var/tmp
recycle: keeptree = Yes
recycle: repository = /home/.Recycles/%U/%I_%S_%T_RecycleBin
recycle: versions = Yes
now when I create a read only file from windows in samba I can change that file with no error or warning and when I check the read only check box in file properties (which I copied or created as read only) it does not checked.
what is wrong?
 
Old 07-16-2011, 10:32 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
What file system are you using on the Samba shares?

I'm not an expert, but I do know that Windows file permissions and Linux file permissions are different and do not translate transparently.

According to this, ntfs files copied from one partition to another by default inherit the permissions of their new directory on the new partition.
 
Old 07-17-2011, 11:43 AM   #3
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Original Poster
Rep: Reputation: 18
I am using ext3 file system and it does not related to inheritance because I change the read only attribute in shared folder but it does not take effect.
 
Old 07-17-2011, 06:44 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Maybe this link from Old Dominion University in Norfolk, Va., USA, one city over from where I sit, will help:

https://secweb.cs.odu.edu/~zeil/cs25...xfersamba.html

It looks as if Windows file permissions cannot be expected to transfer seamlessly to a Linux system.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
creating files from windows on a samba share gives read-only permissions. lievendp Linux - General 5 12-17-2008 10:55 AM
restricted user to only read an other read and write in samba Gran_Maestre Linux - Security 0 02-12-2008 01:16 PM
mozzla problems-can not read files online, can not read attachments sarajevo Linux - Software 1 09-20-2005 06:58 PM
Cannot read files directly off Windows-network via Samba duaux Linux - Networking 0 11-20-2003 04:29 PM
Getting Samba to store DOS read only attributes nwykes Linux - Newbie 0 11-18-2003 06:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:02 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration