Score:0

How to mount Samba without root access?

in flag

I created a directory /home/user/NAS_mount (permission = 777) to mount a SAMBA share.

sudo mount -t cifs //192.168.X.XXX/home -o credentials=/home/user/credential.txt /home/user/NAS_mount

Attempts to write to the share have failed: possibly because of mounting as root. Mount attempts without sudo returns:

mount: only root can use "--options" option

It seems unreasonable that user can not mount a drive to his directory without sudo privilege. What is the procedure to mount without sudo?

Terrance avatar
id flag
You might want to see https://unix.stackexchange.com/questions/20838/does-mount-always-require-root-privileges
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.