LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 04-19-2024, 04:27 AM   #1
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Arch
Posts: 401

Rep: Reputation: 22
Question Howto mount a network share with -t cifs to ~/Documents with NO root


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
 
Old 04-19-2024, 05:16 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,881

Rep: Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317
if it is listed in fstab you can make it available for users (just add the mount option users and probably noauto?)
 
Old 04-19-2024, 08:46 AM   #3
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Arch
Posts: 401

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by pan64 View Post
if it is listed in fstab you can make it available for users (just add the mount option users and probably noauto?)
Quote:
Originally Posted by pan64 View Post
if it is listed in fstab you can make it available for users (just add the mount option users and probably noauto?)
I'll try this when I'm back at work
'cos here at home, there's no Illegal Win Machines
 
  


Reply

Tags
cifs, mount, network, root, user



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount error 111 = Connection refused Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) vonyango Linux - Newbie 1 10-22-2021 03:56 AM
[SOLVED] CIFS share on old WinNT host - smbclient works, mount -t cifs doesn't Electrode Linux - Networking 4 04-19-2012 09:11 AM
manual mount cifs works but srcipt mount cifs has mount error (13): Permission denied CADIT Linux - Newbie 6 11-20-2009 02:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 02:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration