Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49
Rep:
NAS Access / Permissions.....???
I have a USB 3TB drive sitting on a Netgear R3600 router on my network, everything related to routing/switching/DHCP etc, is turned off. I only want it there to "host" the external drive as a NAS.
The router has a static IP address on the network, my problem is that I want it to mount automatically on startup for (basically) any computer on the network that connects and have read/write ability to it.
I can "see" it but cannot "get" to it. When I try what (to me) is logical, (double click the share) in the left pane of the filemanager window it returns this:
An error occurred while accessing 'Home', the system responded: mount: only root can mount //192.168.0.200/USB_Storage on /home/time/readyShare/
IF the usb drive keeps 192.168.0.200, you will probably have to add a line in fstab. I believe its in /etc. Man fstab should help with the syntax. There are umask and user options. I screw mine up regularly, so make a copy before mucking with it. To edit this will require sudo or root.
I have a USB 3TB drive sitting on a Netgear R3600 router on my network, everything related to routing/switching/DHCP etc, is turned off. I only want it there to "host" the external drive as a NAS.
The router has a static IP address on the network, my problem is that I want it to mount automatically on startup for (basically) any computer on the network that connects and have read/write ability to it. I can "see" it but cannot "get" to it. When I try what (to me) is logical, (double click the share) in the left pane of the filemanager window it returns this: An error occurred while accessing 'Home', the system responded: mount: only root can mount //192.168.0.200/USB_Storage on /home/time/readyShare/
The error is fairly clear: you're trying to mount a drive and your system is telling you that only root can do that. You've got some options:
You're using Dolphin, which hints at KDE strongly. You should have a "File Manager - Super user mode" option available to you, which will prompt you for your root password. It should then let you do what you're after.
Add your user to the "disk" group, which will allow it to mount shares as a non-root user
According to the manual (http://www.downloads.netgear.com/fil..._20May2015.pdf), you can either use FTP or HTTP to share a USB drive on that router. That being the case, either mount it via http (using davfs) or with FTP (using curlftpfs).
You don't say what version/distro of Linux, but you can easily put something on your system to auto-mount this share when booting, either via fstab or the dispatcher (I'm on Tumblweed, and that works for me).
The router is also capable of sharing files using CIFS. The manual shows it as network neighborhood on page 33. I have an older model Netgear router and don't have any problems but I don't have KDE runing on any of my systems.
Good catch; if it has CIFS, you can also mount it with CIFS, OP. But I think the OP's problem isn't the file system, but that they can't mount it without root/sudo rights.
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49
Original Poster
Rep:
Thank you to all who responded, all of your help and suggestions are greatly appreciated and taken into account.
The analysis that the primary problem seems to be the mounting/permission rights, at least that is the first issue I am facing, and I think once solved will be the last hurdle to jump, for the most part.
I am running a Plasma Desktop KDE. If that helps also see below:
==================================================================================
4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux
==================================================================================
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 23
Model name: Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz
Stepping: 6
CPU MHz: 2400.000
CPU max MHz: 2400.0000
CPU min MHz: 800.0000
BogoMIPS: 4787.86
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 3072K
NUMA node0 CPU(s): 0,1
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf eagerfpu pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm kaiser tpr_shadow vnmi flexpriority dtherm
==================================================================================
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49
Original Poster
Rep:
Ok first attempt results:
I did a right click on the dolphin icon in the "Start" menu, selected <Edit Application> from the resulting pop-out menu in the Application tab at the bottom right of the window selected <Advanced Options> in the middle of the resulting window is a "box" labeled "User" I ticked the radio button for "Run as a different user" and in the "Username:" field I put "root" selected the <OK> button and the window dismissed.
Upon launching of Dolphin in the usual manner it now asked for my root password, which I provided and dolphin opened when I tried to access the NAS I received the following error message:
=====================================================================
An error occurred while accessing 'USB_Storage on 192.168.0.200', the system responded: mount: wrong fs type, bad option, bad superblock on //192.168.0.200/USB_Storage,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so.
=====================================================================
As the message is hinting at a "helper program" and I have herd cifs mentioned more than once, I will try to install a package through synaptic package manager to assist and will report back the results.
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49
Original Poster
Rep:
I just tried to ad myself to the user group disk as suggested:
Add your user to the "disk" group, which will allow it to mount shares as a non-root user
======================================================================================
time@SATTime-2:~$ sudo su
[sudo] password for time:
root@SATTime-2:/home/time# adduser time disk
Adding user `time' to group `disk' ...
Adding user time to group disk
Done.
root@SATTime-2:/home/time#
Result:
An error occurred while accessing 'USB_Storage on 192.168.0.200', the system responded:
mount: only root can mount //192.168.0.200/USB_Storage on /home/time/readyShare/
======================================================================================
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49
Original Poster
Rep:
what I THINK I need is a directory somewhere (not sure where) named /readyShare that connects to the NAS, I think its kind of like mounting a standard usb thumb drive, but I forget how to do that....I will look this up and give it a try as well.....
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49
Original Poster
Rep:
My attempt at Creating a mount point:
Create a Mount Point
root@SATTime-2:/home/time#
root@SATTime-2:/home/time# mkdir /media/readyShare
root@SATTime-2:/home/time# ls
Desktop Documents Downloads Music Pictures Public readyShare Templates Videos
root@SATTime-2:/home/time# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 232.9G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
├─sda2 8:2 0 230.4G 0 part /
└─sda3 8:3 0 2G 0 part [SWAP]
sr0 11:0 1 1.2G 0 rom
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49
Original Poster
Rep:
I figured it out by happenstance on my first computer, when I moved to another computer on the network it did not work the way it did on the first one....both Debian same version but the ability to mount an IP address is or was in the back of my head but I didnt think it possible like you are showing I will try that on the other machine....thanks for the tip....
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49
Original Poster
Rep:
I had the following in /etc/fstab on the second machine:
=====================================================
#AUTO MOUNT NAS AT STARTUP
//192.168.0.200/USB_Storage /readyShare cifs x-systemd.automount,guest,noperm,$
=====================================================
I commented it out and replaced it with:
=====================================================
mount -t cifs //192.168.0.200/usb_storage /media/nas
=====================================================
In the process I noticed USB_Storage with Capitol letters, I don't really think it should make a difference, however I am checking on the first machine that is working to see what I have there.....
The other machine reads like this: (I will copy/paste into the other and see what happens)
=====================================================
#Test to see if NAS will mount
//192.168.0.200/USB_Storage /home/time/readyShare/ cifs x-systemd.automount,guest,noperm,sec=ntlm 0 0
=====================================================
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.