LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-07-2018, 09:09 PM   #1
OHPRG Project Director
Member
 
Registered: Sep 2016
Location: Southern California
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49

Rep: Reputation: Disabled
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/

See Attached image.

Please advise on how to complete this task.

Thank you
Alan
Attached Thumbnails
Click image for larger version

Name:	ReadyShare Screen Cap.png
Views:	24
Size:	66.6 KB
ID:	28063  
 
Old 07-08-2018, 08:35 AM   #2
buttugly
Member
 
Registered: Feb 2006
Distribution: distrohopper
Posts: 58

Rep: Reputation: 16
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'm gonna go look for an example.........

https://linoxide.com/file-system/exa...stab-etcfstab/

Last edited by buttugly; 07-08-2018 at 08:38 AM. Reason: found example
 
Old 07-08-2018, 09:27 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,751

Rep: Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929
Does the drive use GPT?

Is the router capable of using > 2 TB drives

How is the drive formatted?

Have you configured shares and login accounts etc on the router?

Are other computers capable of accessing the shares?
 
Old 07-08-2018, 09:55 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,695

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by OHPRG Project Director View Post
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).
 
Old 07-08-2018, 10:11 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,751

Rep: Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929
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.
 
Old 07-08-2018, 10:27 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,695

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by michaelk View Post
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.
 
Old 07-08-2018, 05:25 PM   #7
OHPRG Project Director
Member
 
Registered: Sep 2016
Location: Southern California
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49

Original Poster
Rep: Reputation: Disabled
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
==================================================================================
 
Old 07-08-2018, 05:52 PM   #8
OHPRG Project Director
Member
 
Registered: Sep 2016
Location: Southern California
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49

Original Poster
Rep: Reputation: Disabled
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.

Thank you again for all the help...

Alan
 
Old 07-08-2018, 06:03 PM   #9
OHPRG Project Director
Member
 
Registered: Sep 2016
Location: Southern California
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49

Original Poster
Rep: Reputation: Disabled
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/
======================================================================================

Alan
 
Old 07-08-2018, 06:07 PM   #10
OHPRG Project Director
Member
 
Registered: Sep 2016
Location: Southern California
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49

Original Poster
Rep: Reputation: Disabled
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.....
 
Old 07-08-2018, 06:15 PM   #11
OHPRG Project Director
Member
 
Registered: Sep 2016
Location: Southern California
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49

Original Poster
Rep: Reputation: Disabled
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

root@SATTime-2:/home/time# blkid
/dev/sda1: UUID="3504-88C7" TYPE="vfat" PARTUUID="923b4094-c129-4335-911f-b11ef9a39de2"
/dev/sda2: UUID="b9bfaa4c-eb51-4848-bf15-77cf6c1a8421" TYPE="ext4" PARTUUID="3e544cea-29fe-4501-860d-da1ed300e127"
/dev/sda3: UUID="c22381a5-1f66-4a8a-8ec7-7e9a30242295" TYPE="swap" PARTUUID="e90437ee-915d-4dc0-8c14-4f6ff38f141a"
/dev/sr0: UUID="2006-05-14-15-13-00-0" TYPE="udf"
root@SATTime-2:/home/time# fdisk -l

Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 1ED94565-3BA2-485F-BCBC-4CBBF1E85BE8

Device Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M EFI System
/dev/sda2 1050624 484243455 483192832 230.4G Linux filesystem
/dev/sda3 484243456 488396799 4153344 2G Linux swap
root@SATTime-2:/home/time#
 
Old 07-08-2018, 06:33 PM   #12
OHPRG Project Director
Member
 
Registered: Sep 2016
Location: Southern California
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49

Original Poster
Rep: Reputation: Disabled
Adding CIFS and rebooting (just for good measure) seems to have done the trick, I can now read-write-mod-save files.....

Thank you all once again for your help....!!!!
 
Old 07-08-2018, 06:37 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,751

Rep: Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929
Your trying to mount a samba share i.e. SMB/CIFS. The basic syntax is
Code:
mount -t cifs //readyshare or IP address/usb_storage /path/to/mount_point
You must be root or have sudo privileges.

I see that you have already figured it out.

Last edited by michaelk; 07-08-2018 at 06:39 PM.
 
Old 07-09-2018, 08:15 AM   #14
OHPRG Project Director
Member
 
Registered: Sep 2016
Location: Southern California
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49

Original Poster
Rep: Reputation: Disabled
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....
 
Old 07-09-2018, 02:46 PM   #15
OHPRG Project Director
Member
 
Registered: Sep 2016
Location: Southern California
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49

Original Poster
Rep: Reputation: Disabled
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
=====================================================
 
  


Reply



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
[SOLVED] Can’t access NAS drive MikeinGrange Linux - Networking 3 08-14-2017 02:18 PM
NAS Permissions in Debian, What's Going On and How Do I Set bruceam Linux - Networking 11 04-20-2011 03:50 PM
Locked out of files and cant change permissions on SAMBA share NAS Quantaa Linux - Newbie 3 01-21-2011 06:40 AM
remote NAS folder permissions after fresh install wawosz Linux - Newbie 2 10-01-2007 07:13 PM
Struggling with permissions on NAS drive rwhitworth SUSE / openSUSE 1 01-06-2007 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:01 PM.

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