Results 1 to 2 of 2

Thread: set umask for creating files in CIFS mount

  1. #1
    Join Date
    Oct 2006
    Beans
    7

    set umask for creating files in CIFS mount

    Hi,

    I'm struggling since several days on CIFS permission.

    I've got a NAS (Verbatim gigabit) with samba 3.0.25a. Via telnet I found its smb.conf and I have "create mask=0775" and "directory mask=0775" set properly.
    When I mount the share from my ubuntu 10.10 and create a new file, I have a 755 mode permission, instead a 775 as in the server's smb.conf. It seems that my umask (022) on ubuntu overwrite the server's umask (002). Is it a way to change this behaviour?

    I found a strange error in my client's log for CIFS mount: "CIFS VFS: server 192.168.1.253 of type Samba 3.0.25a returned unexpected error on SMB posix open, disabling posix open support. Check if server update available." Can it be related (of course I cannot update the samba server, until a new firmware will be available?

    I've already tried the file_mode and dir_mode options, but nothing change. The same with "noperm" option. I tried "nounix" option too, but after mounting I cannot see the folders I have in my share! No solution so far (I change my umask in ubuntu - umask 002 in ~/.profile, but I'd like a solution only for CIFS share)!

    Please Help!

    thank you,
    Scido
    Last edited by scido06; December 14th, 2011 at 03:20 PM. Reason: semplify the post and new information

  2. #2
    Join Date
    Oct 2006
    Beans
    7

    Re: set umask for creating files in CIFS mount

    Bump

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •