Mount a NAS

How about this:

//127.0.0.1/XXX /mnt/drive cifs guest,uid=1000,gid=1000,_netdev,x-systemd.automount,iocharset=utf8 0 0

guest - indicates you don’t need a password to access the share
uid=1000 - makes the Linux user (specified by the id) the owner of mounted share, allowing them to rename files
user with uid=1000 is the first normal user (non-root user) created on the system
gid=1000 - user group id
_netdev - tells Linux to wait for the network to be up before attempting the mount
x-systemd.automount - network shares will be mounted only upon access
iocharset=utf8 - allows access to files with names in non-English languages (doesn’t work with shares published using ISO8895-15)

1 Like

thank you! worked.