Article 6M6R8 Howto mount a network share with -t cifs to ~/Documents with NO root

Howto mount a network share with -t cifs to ~/Documents with NO root

by
Basher52
from LinuxQuestions.org on (#6M6R8)
Got a network share called public and this is on an IP address of 192.168.10.13
Network has no domain server nor AD.

Now I want an Archlinux machine to mount that share without using root/sudo

I installed samba and if I 'sudo mount' it works this is because I know the root password.
Code:sudo mount -o username=wutever,password=wutever //192.168.10.13/public /run/media/This works and the user/pw set here can be anything.

When I create a new normal user on this machine how can I get this to work without any user interaction?
I want it mounted in the users Documents dir. so they can access it with pcmanfm.

Tried the 'override' thing in sudoers but that won't work and as I've seen so far, this is impossible.

This is Linux so I'm still hopeful :p
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments