LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-05-2008, 06:19 PM   #1
tkienzle
Member
 
Registered: Feb 2005
Location: Kansas City MO
Distribution: openSUSE 11.4
Posts: 90

Rep: Reputation: 15
Question Kubuntu NAS mount problems...


Ok here is what i got i have tried to get this may times and no luck keeps telling me that "Permission Denied" so i might need some help..

this is the line i put in my fstab

//192.168.1.100/Documents/ /mnt/Vault cifs auto,guest,rw,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0


now i have tried this too

//192.168.1.100/Documents/ /mnt/Vault cifs credentials=/home/timmy/.smbpassword,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0

and set the file up with the password and user..

I followed this guide here and had no luck but it look like this guide was for ubuntu 7.10 i run kubuntu 8.04 so it might be deferent i don't know.

i'm ok with linux no guru by any means but i can get around gui and term.. but if i ask you to explain a little more sorry i'm learning as i go

I have netbios install samba too..

also i have read a few other guides and did some things like this..
smbclient //Vault/Documents
and got this
smb: \>

also got this command smbclient -L //192.168.1.100
this was the out put
Domain=[VAULT] OS=[Unix] Server=[Samba 3.0.25b]

Sharename Type Comment
--------- ---- -------
Photos Disk Default_Photos
Music Disk Default_Music
Videos Disk Default_Videos
Backup Disk Default_Backup
Documents Disk Default_Documents
IPC$ IPC IPC Service (HPMediaVault Server)
Domain=[VAULT] OS=[Unix] Server=[Samba 3.0.25b]

Server Comment
--------- -------

Workgroup Master
--------- -------
WORKGROUP


I think this was just to test and see if it was visible on the network..


Any and all help is greatly appreciated thanks....
 
Old 08-05-2008, 08:06 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
You might have better luck if you use an interactive application like Dolphin or Konqueror in filemanager mode or smb4k. The idea that I have in mind is that you just browse the network and connect using any of those application just like you would connect to a network share in Windows using Explorer.

Otherwise the line that had the credentials is the closest to a working system. I would replace the credentials with the actual username and password if this is a private system at home. If this is in work then play with the syntax in the credentials file.

This is a script that I use to mount my Iomega NAS via Samba. This way I don't have to put the confidential information in /etc/fstab.
Code:
#!/bin/bash
mount -t cifs //192.168.1.5/public /mnt/iomega.public -o username=nasuser,password=nasuserpassword,uid=user01,gid=users
Naturally I have changed the specifics.

I have set up the Iomega NAS with a username and password so I don't rely on a guest account. nasuser is the account on the NAS. user01 is the user on the computer.

Last edited by stress_junkie; 08-05-2008 at 08:15 PM.
 
Old 08-05-2008, 08:27 PM   #3
tkienzle
Member
 
Registered: Feb 2005
Location: Kansas City MO
Distribution: openSUSE 11.4
Posts: 90

Original Poster
Rep: Reputation: 15
So you just have a script and run that to mount it every time and just say the heck with the fstab hmm ok i'mm give that a go thanks....
 
Old 08-05-2008, 08:36 PM   #4
tkienzle
Member
 
Registered: Feb 2005
Location: Kansas City MO
Distribution: openSUSE 11.4
Posts: 90

Original Poster
Rep: Reputation: 15
It does mount it but i still don't have access hmmm.. there is the admin user for the nas and a "photo user" which should i use? Does my user for kubuntu need some rights or added to a group?
 
Old 08-06-2008, 06:56 AM   #5
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by tkienzle View Post
Ok here is what i got i have tried to get this may times and no luck keeps telling me that "Permission Denied" so i might need some help..
and
Quote:
Originally Posted by tkienzle View Post
It does mount it but i still don't have access hmmm.. there is the admin user for the nas and a "photo user" which should i use? Does my user for kubuntu need some rights or added to a group?
I think these are related and I've had this kind of problem with Samba although it was using Samba as a server. Here are a couple of ideas that I have successfully used to fix authentication problems. Note: I use all of these techniques all of the time.

- My NAS belongs to its own WORKGROUP, not an NTLM domain or Active Directory domain.

- I put the IP and name of the NAS in the lmhosts file and in the hosts file on the Linux computers.
(/etc/hosts, /etc/samba/lmhosts)
The /etc/hosts file entry looks like this:
Code:
192.168.1.5 iomega01.my.house iomega01
The /etc/samba/lmhosts file entry looks like this:
Code:
192.168.1.5 iomega01 #PRE
Naturally that means that I have to map a specific IP address to the hardware address of the NAS in my DHCP server/router/gateway.

- My Iomega has very comprehensive user account management. I did a quick search of HP Media Vault but I gave up before I found how extensive that appliance's user account management is. You should look into this to see if you can assign user rights to various shares. For example I have disabled the guest account on my Iomega and I have three different user accounts. One user account has read-only access to the public share, another has read-write access to the public share, and the third has no access to the public share but has full access to its own private share. Look into this kind of feature for your NAS.

http://search.hp.com/query.html?lang...as&la=en&cc=us

Of all of the ideas above I think that putting the IP and name of the NAS into your Linux computer's lmhosts file and hosts file has the greatest likelihood of addressing the permission problem. That is because Windows authentication relies on reverse IP lookup (RIP). Having the NAS's software address and name in the lmhosts file helps this process. (Anyone reading this who knows for a fact that I am mistaken about RIP please correct me. I am always refining my understanding of how stuff works so don't be shy.) Anyway, I have found that having an entry for the NAS in the lmhosts file fixes authentication problems. Of that I'm sure because I've seen it. My theory of why it works is from observation and talking with colleagues, not from books.

Last edited by stress_junkie; 08-06-2008 at 07:28 AM.
 
Old 08-06-2008, 10:04 AM   #6
tkienzle
Member
 
Registered: Feb 2005
Location: Kansas City MO
Distribution: openSUSE 11.4
Posts: 90

Original Poster
Rep: Reputation: 15
ok i can make the files i have a question about this in your first line you have "192.168.1.5 iomega01.my.house iomega01"
what is iomega.01.my.house for do i just put Vault.my.house? Vault is the name of my nas.

And all of this may be caused by my router? it is quite old had it for 6 years or more it don't even have UPNP from what i can tell...

any whoot i'm going to give it a go...

thanks for all the help...
 
Old 08-06-2008, 10:19 AM   #7
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by tkienzle View Post
ok i can make the files i have a question about this in your first line you have "192.168.1.5 iomega01.my.house iomega01"
what is iomega.01.my.house for do i just put Vault.my.house? Vault is the name of my nas.
The iomega01 is the IP host name of the NAS. It is also the NetBIOS name of the NAS. Both the IP name and the NetBIOS name are configured on the NAS. The my.house part is an IP domain in my house that I create simply by including it in all of the hosts files on my LAN. If my LAN had a DNS server then my.house would be defined there but since my LAN is small I just use the hosts files for name to IP address lookup.

Last edited by stress_junkie; 08-06-2008 at 10:21 AM.
 
Old 08-06-2008, 10:25 AM   #8
tkienzle
Member
 
Registered: Feb 2005
Location: Kansas City MO
Distribution: openSUSE 11.4
Posts: 90

Original Poster
Rep: Reputation: 15
Just tried a test and it worked kind of...
I opened the dir with the vault /mnt/Vault and tried to make a dir it worked then in that dir i tried to make a file.txt with the words test in it worked? what is going on here? i don't know but i will get it...grrrr
 
  


Reply

Tags
cifs, fstab, nas, samba



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
Only root can chmod on mounted LinkStation NAS - how should I mount? chiefmac Linux - Networking 5 08-07-2008 03:27 PM
Trying to Mount NAS on 32 bit RHEL givng error as smbfs : mount_data version 19192513 kvamc Linux - Hardware 2 04-04-2008 02:21 AM
Need to mount a XFS NAS device psalms1 Red Hat 3 09-16-2007 05:36 AM
Ubuntu 7.04 will not display my NAS but Kubuntu 7.04 will qennster Linux - Newbie 1 09-01-2007 10:44 AM
unable to mount (large) NAS windows file system reitsma Linux - Software 2 11-13-2006 03:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:54 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