LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-23-2009, 09:11 AM   #1
fzanella
LQ Newbie
 
Registered: Feb 2009
Posts: 21

Rep: Reputation: 1
Samba mount Windows shared drive password


I have installed the Samba package on a RedHat Enterprise v4 machine and am now attempting to mount a Windows shared drive. I am logged in as root, I created a /mnt/scratch folder, and need to point to a location in Windows
I invoked the following command:
/sbin/mount.cifs //IPWindowsaddress/scratch /mnt/scratch
I was then asked for a password, this is where I'm stuck. I tried the root password, the Windows domain administrator password, to no avail. Do you know which password may be required?
 
Old 04-23-2009, 09:22 AM   #2
Dudydoo
Member
 
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275

Rep: Reputation: 38
Unless you configure samba to authenticate against another server (e.g. a domian pdc) then you need to supply a username and password for someone who has an account on the machine your connecting to.
 
Old 04-23-2009, 09:40 AM   #3
fzanella
LQ Newbie
 
Registered: Feb 2009
Posts: 21

Original Poster
Rep: Reputation: 1
Thanks for the information. How would I configure samba to authenticate against windows servers in our domain? I'm not familiar with domian pdc. Also, I'm only asked for a Password, but not a Username after executing the /sbin/mount.cifs commmand.
 
Old 04-23-2009, 10:22 AM   #4
Dudydoo
Member
 
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275

Rep: Reputation: 38
You have to set the following in /etc/samba/smb.conf:

Code:
security = server
See the manpage for more info:
Code:
man smb.conf
By default IIRC, unless you supply a username it tries to mount as the guest user, which also IIRC is usually disabled on most Windows boxes.
 
  


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
Samba password protected shared Folder Mrpeepers310 Linux - Networking 5 09-18-2010 10:04 AM
How to mount windows shared drive in to the linux nhsarvaiya Linux - Server 1 08-31-2007 10:08 AM
Windows sees Samba shared drive; Linux can't tnandy Linux - Networking 3 09-13-2004 01:00 PM
samba-cant mount windows drive spideywebsling Linux - Networking 2 07-20-2004 03:14 PM
Mount a windows nt server shared drive yawara Linux - Networking 3 12-19-2002 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration