Skip to content

suggestion for the /etc/fstab #1

@hetzbh

Description

@hetzbh

Hi,
In your etc/fstab you're giving a permission of 777, which won't always work as the GID is root, so files that will be created after the smb is mounted couldn't be deleted sometime (depends on the permissions on the file/dir)

I suggest an alternative way:

  • The files will have 644 permission and folders 755 permission
  • the mount will use the current uid/gid of the user which is 1000, that way he/she will have a full permission just like local files.

example:

//nas.local/stuff /media/removable/CASIO-DSC/smb smbfs username=XXX,password=YYY,rw,iocharset=utf8,file_mode=0644,dir_mode=0755,uid=1000,gid=1000 0 0

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions