LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-07-2003, 07:44 AM   #1
hotblack
LQ Newbie
 
Registered: Aug 2003
Posts: 9

Rep: Reputation: 0
Question Cannot mount SMB share


Hi. I'm trying to mount a Windows share into a folder in my home directory. As per various sources I'm using the terminal command:

mount -t smbfs -o username=fred,password=secret //192.168.1.1/public /mnt/public

but I get a message saying only root can do that.

I guess I need to change the perms on smbmount or smbmnt? but for the life of me I can't find the answer.

Thanks

HB
 
Old 08-07-2003, 08:01 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
no, you need to be root, hence the message...

only root users can create arbitrary mount points. other users can only mount devices already listed in /etc/fstab
 
Old 08-07-2003, 08:23 AM   #3
hotblack
LQ Newbie
 
Registered: Aug 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Unhappy

so I need to login as root on my RH or Mandrake box so I can access my windoze box? surely not!

all I want to do is mount to home/user/folder_name, not FSTAB

Thanks
 
Old 08-07-2003, 08:25 AM   #4
hotblack
LQ Newbie
 
Registered: Aug 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Lightbulb

or maybe I can modify FSTAB? How do I do that?

frustrated...

HB
 
Old 08-07-2003, 08:46 AM   #5
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
You can mount an SMB share by adding the following syntax to the /etc/fstab
Code:
//theshare.name.net/myarea /mnt/windows/myarea smbfs username=myusername,uid=100,gid=100,user 0 0
 
Old 08-07-2003, 08:54 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Quote:
Originally posted by hotblack
so I need to login as root on my RH or Mandrake box so I can access my windoze box? surely not!
security?!?!? surely not?!!
 
Old 08-07-2003, 11:06 AM   #7
hotblack
LQ Newbie
 
Registered: Aug 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Hi.

Thanks for your help so far. I'm presuming that I don't need to restart after I change /etc/fstab?

Anyhow I added the following to my /etc/fstab file as per previous instruction:

//ip_address_of_server/share/hotblack /mnt/windows/hotblack smbfs username=hotblack,uid=100,gid=100,user 0 0.

I then used the command mount smbfs -o username=hotblack,password=password //ip_address_of_server/share/hotblack /mnt/windows/hotblack

but I still get 'only root can do that' message.

round and round in circles...

HB
 
Old 08-07-2003, 11:36 AM   #8
hotblack
LQ Newbie
 
Registered: Aug 2003
Posts: 9

Original Poster
Rep: Reputation: 0
OK, I found another post that said after adding the stuff to /etc/fstab just do mount /mnt/windows/hotblack.

It accepts this command, but nothing results.

So I thought maybe I need a folder called windows/hotblack to mount into? I can only create them as root which I did, re did the mount /mnt/windows/hotblack command which accepts OK but still not mounted.

Oh dear!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
can't mount a smb share over wireless... Savet Linux - Wireless Networking 10 05-02-2011 01:14 PM
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
Mount SMB Share from user account jeopardyracing Linux - Newbie 3 12-03-2004 05:04 PM
can't mount smb share as non-root user nixinbarrie Linux - Networking 5 09-27-2004 08:51 PM
(Windows) Only one Linux box can mount a smb share Artimus General 1 07-21-2004 12:12 PM


All times are GMT -5. The time now is 04:57 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration