Samba Config. "Drive mapping error" in XP

Asked by eolatunde

I am also branded new to linux. I am trying to setup a file server for shared access to 1 xp client and to vista clients. I am trying to start off with the XP first. I have followed instructions on: http://ubuntuforums.org/showthread.php?t=202605

I believe I have done everything as instructed, however when ever I attempt to map the drive I get an error. I have went through my smb.conf file think that the error has to be there. I did at one point have access to view my exchange folder when you click on browse inthe map drive window. However, now currently while trying to get that problem fixed I can't even do view them anymore.

I can see my shared folders in my Networking Places. However, when it asks for a user name and password I use the one I created for samba and it says that I don't have permission to use the share resource.

Also when I attempt to map the drive it gives me and "Extended Error"

Any suggestions?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Thanos Koukoulis
Solved:
Last query:
Last reply:
Revision history for this message
Thanos Koukoulis (thanosk-gmail) said :
#1

Could you please write here the actual smb.conf file ?
Also I suppose the msg "Extended Error" is on the windows machine. Is that all it returns?
Can you please quote the complete error msg ?

Revision history for this message
eolatunde (eio6947) said :
#2

I'm replying from my blackberry at the moment but I will post my smb.conf file when I get back to the office.

If my memory serves me correctly, the error message stated: "Could not map drive due to the following error: An extended Error Occurred."

This message did display from my windows xp client. The frustrating thing is that it doesn't identify what or where the error came from. I read threads that said to right click on "My computer" then go to manage, then event tracker. I went there and looked under all tags and found. No error that had anything to do with this problem. All it made mention was my live update for my anti virus. I checked my windows firewall. Turned on and off and still the same message. And I even check my old firewall program that I don't use anymore.

I did try to map on my vista client and I get the same message on all but one. I could map it under one of the user names that I created for samba. However I have no access to save anything on that share. Also on this vista client I am able to see all available shares just not what is stored on them.

Hope this helps, will send the smb.conf soon.

Emmanuel
------Original Message------
From: Thanos Koukoulis
Sender: <email address hidden>
To: Emmanuel Olatunde
ReplyTo: <email address hidden>
Sent: Jan 25, 2008 2:38 AM
Subject: Re: [Question #23028]: Samba Config. "Drive mapping error" in XP

Your question #23028 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/23028

    Status: Open => Needs information

Thanos Koukoulis requested for more information:
Could you please write here the actual smb.conf file ?
Also I suppose the msg "Extended Error" is on the windows machine. Is that all it returns?
Can you please quote the complete error msg ?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+question/23028

You received this question notification because you are a direct
subscriber of the question.

Sent via BlackBerry from T-Mobile

Revision history for this message
eolatunde (eio6947) said :
#3

smb.conf

[global]
    netbios name = unpsys
    server string = Unparallel Systems Server
    workgroup = WORKGROUP
    encrypt passwords = true
# guest ok = yes
    smb passwd file = /etc/samba/smbpasswd
    domain master = yes
    local master = yes
    preferred master = yes
    os level = 99
    idmap uid = 10000-20000
    idmap gid = 10000-20000
    announce version = 5.0
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
# passdb backend = tdbsam
    null passwords = true
    username map = /etc/samba/username.map
# name resolve order = wins lmhosts host bcast
    hosts allow = 127.0.0.1 127.0.1.1 192.168.
    hosts deny = 0.0.0.0/0
# hostname lookups = yes
# hosts equiv = /etc/samba/lmhosts
   map to guest = Bad User
   guest account = nobody
# wins support = yes
# smb ports = 139
    browse list = yes
    mangled names = yes
    default case = lower
    case sensitive = no
    preserve case = yes
    short preserve case = yes

#global logging
    syslog = 1
    syslog only = yes

#global printing settings
    printing = CUPS
    printcap name = CUPS

; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
wins support = yes

[homes]
    valid users = eio6947 root
    create mode = 0600
    directory mode = 0755
    browseable = no
    read only = no
    ;veto files = /*.{*}/.*/mail/bin/

; NOTE: Inside this place you may build a printer driver repository for

; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.

[print$]
    path = /var/lib/samba/printers
    browseable = yes
    guest ok = yes
    read only = yes
    write list = root
    create mask = 0664
    directory mask = 0775

[printers]
    path = /tmp
    printable = yes
    guest ok = yes
    browseable = yes

; Uncomment if you need to share your CD-/DVD-ROM Drive [ ok ]
;[DVD-ROM Drive]
    ;path = /media/cdrom
    ;browseable = yes
    ;read only = yes
    ;guest ok = yes

;These are private shares that only
[UBUNTUFILES]
    path = /home/eio6947

    read only = no
    guest ok = no
    valid users = %U root
    create mask = 0644
    directory mask = 0755
    force user = eio6947
    force group = eio6947
    available = yes
    public = no
    writable = yes
    browsable = no
;These are shares that everyone can access, even guests

[photoshop]
path = /media/photoshop
comment = Photoshop Files
available = yes
browsable = yes
public = yes
writable = yes
guest ok = yes
force user = eio6947
force group = eio6947

[clients]
path = /media/clients
comment = Client Files
available = yes
browsable = yes
public = yes
writable = yes
guest ok = yes
force user = eio6947
force group = eio6947

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Thanos Koukoulis
Sent: Friday, January 25, 2008 2:38 AM
To: <email address hidden>
Subject: Re: [Question #23028]: Samba Config. "Drive mapping error" in XP

Your question #23028 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/23028

    Status: Open => Needs information

Thanos Koukoulis requested for more information:
Could you please write here the actual smb.conf file ?
Also I suppose the msg "Extended Error" is on the windows machine. Is that all it returns?
Can you please quote the complete error msg ?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+question/23028

You received this question notification because you are a direct
subscriber of the question.

Revision history for this message
Thanos Koukoulis (thanosk-gmail) said :
#4

I have the impression that
for the public folders you should not use
the following directives:

force user = eio6947
force group = eio6947

Revision history for this message
eolatunde (eio6947) said :
#5

Thanks! When I removed the user tag it allowed me to map the drive. However I still cannot save anything on the share. I get a "you don't have permission" error.
------Original Message------
From: Thanos Koukoulis
Sender: <email address hidden>
To: Emmanuel Olatunde
ReplyTo: <email address hidden>
Sent: Jan 27, 2008 3:07 AM
Subject: RE: [Question #23028]: Samba Config. "Drive mapping error" in XP

Your question #23028 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/23028

    Status: Open => Answered

Thanos Koukoulis proposed the following answer:
I have the impression that
for the public folders you should not use
the following directives:

force user = eio6947
force group = eio6947

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/23028/+confirm?answer_id=3

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/23028

You received this question notification because you are a direct
subscriber of the question.

Sent via BlackBerry from T-Mobile

Revision history for this message
Thanos Koukoulis (thanosk-gmail) said :
#6

What are the actual file system permissions for that directory ?
In a terminal do
ls -la /media/clients

most probably noone has read-write permissions apart from the actual owner of the directory.
Give read-write permissions to everyone.

Revision history for this message
eolatunde (eio6947) said :
#7

How do I add this for everyone?
------Original Message------
From: Thanos Koukoulis
Sender: <email address hidden>
To: Emmanuel Olatunde
ReplyTo: <email address hidden>
Sent: Jan 27, 2008 4:13 PM
Subject: Re: [Question #23028]: Samba Config. "Drive mapping error" in XP

Your question #23028 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/23028

    Status: Open => Answered

Thanos Koukoulis proposed the following answer:
What are the actual file system permissions for that directory ?
In a terminal do
ls -la /media/clients

most probably noone has read-write permissions apart from the actual owner of the directory.
Give read-write permissions to everyone.

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/23028/+confirm?answer_id=5

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/23028

You received this question notification because you are a direct
subscriber of the question.

Sent via BlackBerry from T-Mobile

Revision history for this message
Thanos Koukoulis (thanosk-gmail) said :
#8

Sorry do

chmod -R 777 /media/clients

also in the smb.conf file in the [clients] directive at the end add

create mask = 777
directory mask = 777

so any file written there as well as all new directories are readable/writable by everyone.
(restart samba after you change the directive)

Revision history for this message
eolatunde (eio6947) said :
#9

What about any shares that I want to keep private by user. What would be the permisions tag for that? What you suggested worked, but I'm still trying to understand what I did to make it work so that I actually learned this thing. Thanks for the help. I spent hours in the Ubuntuforums.org until they gave up on me.

Revision history for this message
Best Thanos Koukoulis (thanosk-gmail) said :
#10

Well if you wanted a directory to be accessed only by a certain user you would do

[user1share]
path = /home/user1
valid users = user1
public = no
writable = yes
printable = no

The problem with your original configuration was that for the public
folder you had conflicting directives.
You told samba that the guest account was to correspond to the user 'nobody'
guest account = nobody
and where you defined the public share you told samba to login as the user 'eio6947'.
As a result that created problems.
Also we made the directory and files in there writable & readable by all users (as well as nobody)
that was the chmod 777 command.

force user & force group are not always needed

Samba has quite good documentation and you can look through it here :
http://us1.samba.org/samba/docs/man/Samba-Guide/
and here:
http://us1.samba.org/samba/docs/using_samba/toc.html

Revision history for this message
eolatunde (eio6947) said :
#11

Thanks Thanos Koukoulis, that solved my question.