CIFS share Readable & Writeable in Windows, but only Readable in Linux

Status
Not open for further replies.

grep137

Dabbler
Joined
Mar 21, 2014
Messages
36
I followed the instructions in the FreeNAS 9.x Video Series (http://www.freenas.org/about/videos.html) and created a CIFS share. The share is readable and writeable in Windows 7, but only readable in Linux (Ubuntu 13.04 upgraded to 14.04). I installed the cifs-utils package, and I've tried mounting it with both Nautilus and also at the command line (with almost every variation of the mount command I could find on the internet, which was applicable). I'd be grateful if someone could give me a suggestion on what to try next. Is this a problem with my samba configuration? My userid on my linux machine is 1000 and on my FreeNAS box it's 1001. I saw one post where someone suggested using the force user id and force group id in the mount command, although maybe this is only important when mounting an NFS share?

I'm currently using FreeNAS version 9.2.1.5.
 
Last edited:

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Upload your smb4.conf file (located at /usr/local/etc) and post any relevant error messages from /var/log/samba/log.smbd

Please also give a detailed explanation of how you have configured access controls for your shares.
 

grep137

Dabbler
Joined
Mar 21, 2014
Messages
36
Upload your smb4.conf file (located at /usr/local/etc) and post any relevant error messages from /var/log/samba/log.smbd

Please also give a detailed explanation of how you have configured access controls for your shares.

Please don't take too much of your time trying to help me, now that I found your thread, Overambitious Overview of CIFS Permissions, while doing a search for "access controls", maybe I can figure it out myself.

Strange, no samba dir:
[root@freenas ~]# cd /var/log/samba
bash: cd: /var/log/samba: No such file or directory

cifsperm.jpg


datasetperm.jpg


Users.jpg


volperm.jpg



Code:
[global]  
  server max protocol = SMB3  
  encrypt passwords = yes  
  dns proxy = no  
  strict locking = no  
  oplocks = yes  
  deadtime = 15  
  max log size = 51200  
  max open files = 11070  
  load printers = no  
  printing = bsd  
  printcap name = /dev/null  
  disable spoolss = yes  
  getwd cache = yes  
  guest account = nobody  
  map to guest = Bad User  
  obey pam restrictions = Yes  
  directory name cache size = 0  
  kernel change notify = no  
  panic action = /usr/local/libexec/samba/samba-backtrace  
  server string = FreeNAS Server  
  store dos attributes = yes  
  map archive = no  
  map readonly = no  
  map hidden = no  
  map system = no  
  hostname lookups = yes  
  time server = yes  
  acl allow execute always = true  
  local master = yes  
  server role = standalone  
  netbios name = FREENAS  
  workgroup = WORKGROUP  
  security = user  
  pid directory = /var/run/samba  
  smb passwd file = /var/etc/private/smbpasswd  
  private dir = /var/etc/private  
  create mask = 0666  
  directory mask = 0777  
  client ntlmv2 auth = yes  
  dos charset = CP437  
  unix charset = UTF-8  
  log level = 1  
  
[windowshare]  
  path = /mnt/vol1/dataset1  
  printable = no  
  veto files = /.snap/.windows/.zfs/  
  writeable = yes  
  browseable = yes  
  recycle:repository = .recycle/%U  
  recycle:keeptree = yes  
  recycle:versions = yes  
  recycle:touch = yes  
  recycle:directory_mode = 0777  
  recycle:subdir_mode = 0700  
  vfs objects = zfsacl streams_xattr aio_pthread  
  hide dot files = yes  
  guest ok = yes  
  inherit acls = yes  
  nfs4:mode = special  
  nfs4:acedup = merge  
  nfs4:chown = yes  
  zfsacl:acesort = dontcare
 
Last edited:
Status
Not open for further replies.
Top