LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 01-24-2006, 06:13 PM   #1
psychobyte
Member
 
Registered: Sep 2003
Location: Central Coast, California
Posts: 179

Rep: Reputation: 30
Mounting Windows 2003 server share


Hi,

I'm using FC4 and I have a Win2k3 server as a file server. Now, when I login to gnome I can "connect to server" and mount the share on the server.

However, when I do

mount -t cifs -o username=test,password=password,ro //server.ads.com/share /mnt/share

I get


mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

I've tried disabling "signing connections" on the server and that doesn't work. Does anyone know exactly how gnome mounts windows shares. If I could just use that command then it should work fine.

Do the options in smb.conf effect how you mount smb/cif shares?

Last edited by psychobyte; 01-24-2006 at 06:33 PM.
 
Old 01-25-2006, 01:56 PM   #2
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
try user instead of username
and also make sure cifs is either compiled in your kernel or you loaded the module.

if it is a module it will show up as
cifs
when you lsmod

modprobe cifs
will load it
 
Old 01-26-2006, 02:52 AM   #3
psychobyte
Member
 
Registered: Sep 2003
Location: Central Coast, California
Posts: 179

Original Poster
Rep: Reputation: 30
OK,

I was able to make it work by creating a credentials file

----------------------
username=username
password=somepasswoord
---------------------

Then using this command


mount.cifs //servername/Share /mnt/share -o "domain=DOMAIN,cred=/home/admin/cifspass,ro"

Thanks,
 
Old 10-22-2006, 10:53 AM   #4
vtbinhsg
LQ Newbie
 
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0
Please send me instruction to connect Linux client to a Windows share

Hi
I've read your text, but I can't do. Can you send me full instruction about this.
Thanks.


-------------------------------
Quote:
Originally Posted by psychobyte
OK,

I was able to make it work by creating a credentials file

----------------------
username=username
password=somepasswoord
---------------------

Then using this command


mount.cifs //servername/Share /mnt/share -o "domain=DOMAIN,cred=/home/admin/cifspass,ro"

Thanks,
 
Old 10-22-2006, 05:25 PM   #5
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
mount //server/share /mnt/point cifs password=secret,username=whoever
 
Old 10-22-2006, 08:38 PM   #6
kenji
Member
 
Registered: Sep 2004
Location: Philippines
Distribution: Red hat 9, Ubuntu 5.04, Free BSD 5.3, Knoppix 5.04, Ubuntu 8.04, [Slackware 12~13.1]
Posts: 141

Rep: Reputation: 16
try this. if you typed your password with the command it would be visible
and insecure you will also see it in the .bash_history history file this
will ask you a password after you issued this command. hope this helps| 3


mount -t cifs -o username=test //server.ads.com/share /mnt/share
 
  


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
mount a share from server 2003 on linux amon Linux - Networking 7 04-26-2006 12:53 PM
Red Hat Linux 9 + Windows Server 2003 + Windows XP + Fedora in same domain wolfy339 Linux - Networking 5 03-02-2005 06:03 AM
windows 2003 and debian share nadirm Linux - Networking 3 01-25-2005 04:58 PM
windows 2003 and debian share nadirm Linux - Networking 1 01-24-2005 06:55 AM
unable to browse samba share from windows 2003 kfloda Linux - Software 1 08-16-2003 07:14 AM


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