Read/write access for Samba/cfis drive remotely using GNU/Linux

I’ve had some issues with accessing a remote network drive: I didn’t have the permission to write on the network drive, even though I should. Changing the permissions manually would have worked, but that seemed like the wrong approach. I didn’t log into this particular drive for a while, so I figured my mount options were probably incorrect. Turns out (as usual) that the solution was to set the uid option:

mkdir -p ~/mnt/remote_username

sudo mount -t cifs -o user=remote_username,domain=domain.com,uid=local_username //home/remote_username$ ~/mnt/remote_username

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: