LinuxQuestions.org
Help answer threads with 0 replies.
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 03-24-2011, 07:19 AM   #1
bruceam
Member
 
Registered: Nov 2008
Location: Atlanta, Georiga
Distribution: Debian, Ubuntu
Posts: 88

Rep: Reputation: 17
NAS Permissions in Debian, What's Going On and How Do I Set


I have a Promise Technologies SmartStor NS4300N Network Attached Storage device. I have a brand new install with blank disks setup.

I have mounted these network drives onto my local machine using the "mount" command. I have logged into the NAS using the same username and password that I am running from on my Debian Desktop machine.

Problem: When I attempt to copy data to the locally mounted NAS Directories, I am seeing permission errors. The directories that I am copying appear in the new file list, but they are read only. I receive an error message telling me that I do not have permissions to write to the directory that I just created. I went to the command line and using "sudo" attempted to change the ownership and permissions, but I received more error message indicating that I don't have permission to do this either. I am able to copy files directly into the mounted directory, and I and open them, modify them, and delete them. I can even delete the new directory that I cannot seem to story anything in.

Question: Shouldn't the files I copy onto my subdirectory of the NAS (which uses the same username and password as the machine the directory is mounted onto) be available to me with full permissions?

Question: How can I correct the problem.
 
Old 03-24-2011, 08:49 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,214

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
What OS in on the NAS? Mine is a D-Link, and it runs linux. If yours is windbloze, that may be a big part of the problem.
 
Old 03-24-2011, 01:55 PM   #3
kabars_edge
Member
 
Registered: Apr 2006
Location: Silver Spring, MD
Distribution: Debian
Posts: 40

Rep: Reputation: 8
Are you manually mounting these or are you mounting them through fstab? Please copy and paste the mount syntax you are using. Additionally, if it is a NAS, how are you presenting the new storage to the system, over ethernet, or are you using a fiber channel NAS, and preseting LUNs?
 
Old 03-24-2011, 02:30 PM   #4
bruceam
Member
 
Registered: Nov 2008
Location: Atlanta, Georiga
Distribution: Debian, Ubuntu
Posts: 88

Original Poster
Rep: Reputation: 17
camorri: I do not know what operating system the NAS is using. I checked the system information tab and it said only, Embedded Linux, and gave 01.05.0000.12 version number. I suspect this is a proprietarily customized OS by Promise Technologies.

kabars_edge: I am manually mounting the directory. I have included the command I use for this purpose below:

mount -t smbfs //192.168.1.99/BRUCE /home/penguin/bruce -o "username=<username>,password=<password>",-rw

I execute this command by preceding it with the "sudo" command.


I hope this sheds some light on the subject.
 
Old 03-25-2011, 10:35 AM   #5
kabars_edge
Member
 
Registered: Apr 2006
Location: Silver Spring, MD
Distribution: Debian
Posts: 40

Rep: Reputation: 8
Quote:
Originally Posted by bruceam View Post

mount -t smbfs //192.168.1.99/BRUCE /home/penguin/bruce -o "username=<username>,password=<password>",-rw
I can tell you this much, you need to abandon the use of smbfs, and use cifs. smbfs is known to have many issues and is no longer supported by the samba team. so try

Quote:
mount -t cifs //192.168.1.99/BRUCE /home/penguin/bruce -o "username=<username>,password=<password>",-rw
However, YMMV.

HTH,
 
Old 03-25-2011, 02:47 PM   #6
bruceam
Member
 
Registered: Nov 2008
Location: Atlanta, Georiga
Distribution: Debian, Ubuntu
Posts: 88

Original Poster
Rep: Reputation: 17
kabars_edge
Thanks for the mount information. I mounted the NAS drives using your suggested method, but unfortunately, the permissions issue was unchanged.

I do appreciate the information though.
 
Old 03-25-2011, 03:04 PM   #7
bruceam
Member
 
Registered: Nov 2008
Location: Atlanta, Georiga
Distribution: Debian, Ubuntu
Posts: 88

Original Poster
Rep: Reputation: 17
I believe I may have happened on the OS for the SmartStor NS4300N. A response line which printed out when I attempted to log in as admin was

"BusyBox v1.00-rc2 (2006.11.07-01:55+0000) Built-in shell (ash)"

I don't know if this is the OS or not, but someone out there may recognize it and know what to do.


Quote:
Originally Posted by camorri View Post
What OS in on the NAS? Mine is a D-Link, and it runs linux. If yours is windbloze, that may be a big part of the problem.
I hope this helps.
 
Old 03-25-2011, 06:16 PM   #8
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,214

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
For what its worth, here is a link that describes BusyBox.

http://www.icewalkers.com/Linux/Soft...0/BusyBox.html

The latest stable version is 1.16.2. At least we know it is not windoze.

Have you looked at the manufacturers web site to see if there are any updates you could apply?
 
Old 04-13-2011, 04:15 AM   #9
d90mhz
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
bruce, I have the same NAS and thanks to this post I've finally got ANY mount command to work for me. So thanks!

As for the permissions issue, I believe since the NAS is running it's own filesystem on it's own linux, if you want to share those files with your other linux machines you'll need to manage the user/groups to sync with all your machines.

Basically, the files on the NAS have *some* user ID (lets assume that's 1001) and *some* group ID (lets assume that's 500), along with each file having it's own permissions. Depending on how much you want to share, you'll want to configure your other linux machines to add particular users to group 500, or even make a user with the ID 1001 to simply act as the owner of those files.

E.G. When I set up my NAS (before I had any linux machines) I made a user named "Family" and a group named "Family". If you look at the /etc/passwd file on your NS4300, you'll see that user. (On my machine they started the users in the 1000s and the groups in the 500s, so the user ID is 1001 and the group is 500.) On my linux box, I then made a user named "Family" with the ID 1001 and had them in the "Family" group with the ID of 500. Obviously you don't need to match the names of the user and group, but I did. It is important to match the IDs. With this change, when I log in as Family on my linux machine, I have ownership of all the files on my NAS mount.

Hope this helps.
 
Old 04-14-2011, 10:03 AM   #10
kabars_edge
Member
 
Registered: Apr 2006
Location: Silver Spring, MD
Distribution: Debian
Posts: 40

Rep: Reputation: 8
Bruce,

If your NAS is running Busybox, then you do not need to be mounting that as a CIFS/SMBFS partition, but you need to mount it as a NFS partition. Additionally, try mounting it from your fstab.

Quote:
//192.168.1.99/BRUCE /home/penguin/bruce nfs rw,intr 0 0
Also, with most NAS devices, you have to export the share to the system mounting it; although I'm using a $5,000,000 NetApps, I'm sure they all work pretty much the same way. The thing is it appears that you have to configure it from a Windows PC first to export it to the Unix/Linux system. Below is a link to the PDF for setting up your specific NAS.

http://firstweb.promise.com/upload/S...0N_PM_v1.4.pdf

So configure the NAS to export the share to the IP address of your Unix/Linux box, then you should be able to directly mount via

Quote:
mount 192.168.1.99/BRUCE /home/penguin/bruce
HTH,
 
Old 04-15-2011, 04:01 AM   #11
d90mhz
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
For posterity and perhaps to help out other watchers, I'll say that this command does not work on my NAS.

I'm running version 01.05.0000.08 of the firmware on a Promise NS4300N and with that mount command, I get the following:

user@linux1:~$ sudo mount 192.168.1.101:/Volume1/Public /nas/public
mount: wrong fs type, bad option, bad superblock on 192.168.1.101:/Volume1/Public,
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

Or, I get this if I specify auto:

user@linux1:~$ sudo mount -t auto 192.168.1.101:/Volume1/Public /nas/public
mount: special device 192.168.1.101:/Volume1/Public does not exist

However, the samba (or cifs, rather) mount works just fine. It appears the unix export on the NS4300 is messed up somehow and I can only access it through the windows share.

Permissions through this method don't seem to be a problem for me, however.
 
Old 04-20-2011, 03:50 PM   #12
bruceam
Member
 
Registered: Nov 2008
Location: Atlanta, Georiga
Distribution: Debian, Ubuntu
Posts: 88

Original Poster
Rep: Reputation: 17
Thanks for the information. I will give it a try, but I think you may have it dead on.


Quote:
Originally Posted by d90mhz View Post
For posterity and perhaps to help out other watchers, I'll say that this command does not work on my NAS.

I'm running version 01.05.0000.08 of the firmware on a Promise NS4300N and with that mount command, I get the following:

user@linux1:~$ sudo mount 192.168.1.101:/Volume1/Public /nas/public
mount: wrong fs type, bad option, bad superblock on 192.168.1.101:/Volume1/Public,
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

Or, I get this if I specify auto:

user@linux1:~$ sudo mount -t auto 192.168.1.101:/Volume1/Public /nas/public
mount: special device 192.168.1.101:/Volume1/Public does not exist

However, the samba (or cifs, rather) mount works just fine. It appears the unix export on the NS4300 is messed up somehow and I can only access it through the windows share.

Permissions through this method don't seem to be a problem for me, however.
 
  


Reply

Tags
debian, nas, ownership, permissions



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
resize / ( root ) partition on Debian. NAS server stianiquniez Linux - Server 4 01-28-2011 06:32 PM
Locked out of files and cant change permissions on SAMBA share NAS Quantaa Linux - Newbie 3 01-21-2011 06:40 AM
NAS + Debian niteshadw Linux - Server 3 08-31-2009 09:29 PM
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 09:33 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