June 2, 20215 yr hey everyone, first post here. I have a machine that I would like to do some computation on, and I have an unraid machine which hosts a few shares. One of those shares I would like to write to from the compute machine programmatically (i.e. the writable share on the unraid machine is a scratch space). The compute machine is running ubuntu 18.04 server edition. I've tried mounting the share using mount.cifs (and have edited /etc/fstab as well), and am logging into an unraid profile that has read/write privileges to the share, but am required to have sudo privileges on the compute machine to write. specifically, I can only get the share to mount using the following command: sudo mount.cifs <unraid_ip>/path_to_share <mount_point> -o user=<unraid_profile>,rw From what I've been reading, it looks like mount.cifs (and also mount) require root to use unless I modify sudoers, which I would prefer to avoid. Has anyone had this issue before, or does anyone have any tips? Edit: SOLVED The solution was that unraid was sending file permissions, so I had to include my userid and gid as well as force their usage to mount: sudo mount -t cifs -o user=<unraid_profile>,uid=$(id -u),gid=$(id -g),forceuid,forcegid, <unraid_ip>/path_to_share <mount_point> Edited June 3, 20215 yr by pickandroll3 added solution
Archived
This topic is now archived and is closed to further replies.