File Sharing Problem

Posted on 2003-03-11
Medium Priority
Last Modified: 2010-03-18
I have a Dell ProEdge 2400 Server with Linux Mandrake 9.0 Installed. I just added a 36 gig scsi ultra 320 10,000rpm. So I waxed the first test installation and started over. Now the problem I'm having is that I When set up samba , and in the /home/samba folder i Set up 5 different folders besides the default public folder. The problem I'm having is that I want to share these folders on the network so that I can map a drive to it. when I map a drive to the public it will map but it will not let me write to the drive after I have mapped the public drive and it will not map a drive at all with the 5 other folders that I have created. Now I have tryed to set the attributes to these folders but they will not take the changes. What am I doing wrong....Please help!!!!
Question by:cmmonline
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +2

Expert Comment

ID: 8112947
1) Start with testing if your samba shares has the right permission:

  path = /home/samba/folder1
  read only = no
  writable = yes

2) If that doesnt work, I would extend my search beyond using the /home/samba folder (at least if you have created a user named samba, since he/she will own this folder), try creating: /mysambashare, and giving it the appropriate permission (maybe even 777 for testing purposes _only_).


Author Comment

ID: 8114301
That helped but didn't get me mapped.

This is a copy of my smb.conf file

    workgroup = AMS
    server string = Dell Server
    security = SHARE
    encrypt passwords = Yes
    passwd program = /usr/bin/passwd %u
    passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
    unix password sync = Yes
    log file = /var/log/samba/log.%m
    max log size = 50
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    printcap name = lpstat
    printing = cups

    comment = Home Directories
    read only = No
    hosts allow = 192.168.42
    available = no
    browseable = no
    public = no
    writable = yes
    only user = no
    preexec close = no
    root preexec close = no

    comment = All Printers
    path = /var/spool/samba
    create mask = 0700
    guest ok = Yes
    printable = Yes
    print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients).
    lpq command = lpstat -o %p
    lprm command = cancel %p-%j
    browseable = No

comment = Public Stuff
path = /home/samba/public
write list = @staff
guest ok = Yes

path = /home/samba/folder1
read only = no
writable = yes

comment = Amada gcode
path = /home/samba/amada
read only = no
writable = yes
comment = Engineering
path = /home/samba/eng
read only = no
writable = yes

comment = IS Dept
path = /home/samba/is
read only = no
writable = yes

comment = Customer Service
path = /home/samba/cs
read only = no
writable = yes

comment = Accounting
path = /home/samba/acct
read only = no
writable = yes
<<end of smb.conf>>

Now when i try to map a drive to this on a Win2KPro machine i get login pop up asking for
1>"connect as:"


When I try to map it froma Windows ME box it just asks for the password.

its getting closer a bit more help and I'll double the points.

also if you could tell me what "core.5045" file is for it is located in file:/root/

Accepted Solution

jungle_kp earned 2000 total points
ID: 8114402
it seems to me that you need to add the individual users/machines to sambas database over users. You can do this with the smbpasswd program... I believe its something along the lines of: smbpasswd -a newuser, and then it will prompt you for a password.

To the second question, this _could_ be a core dump file, im not sure about this though, its my best guess.

Try and add the user, and let me know what happens then. This user has to match the one you are trying to connect with from the workstation.
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 8117212
I'd like to add to jungle's comments --
go ahead and add the user you need:

   smbpasswd -a cmmonline

Then, just to make sure, check if it shows up in your smbpasswd file:

   cat /etc/samba/smbpasswd

Also, double check your smbd log files for more hints:


Can you cat out the core.5045 file? I think the 5045 corresponds to the pid (process ID) that crashed. If that is the case you'll get a long list of hex bytes so you can hunt down the problem.
LVL 22

Expert Comment

ID: 8120165
Start with a catch all samba directory in your smb.conf, and increase the ecurity once you have it working


        path = /temp/
        force directory mode = 777
        delete readonly = yes
        create mode = 777
        wide links = no
        force create mode = 777
        directory mode = 777


Creat and chmod the /temp directory to 777, and then you should have a directory available to anyone.

Once you know the setup works, then start altering it to your exact requirements:)

Hope that helps:)
LVL 22

Expert Comment

ID: 8120180
...or5 indeed direct the path to /home/samba/whatever:)

Expert Comment

ID: 8127075
Check the permission of your shared folders. you have setup the share level security. so you need to make sure that every one has right access on the shared directories.

Expert Comment

ID: 8127087
One more thing ,

        I think you need to comment "encrypt passwords = Yes", because you are using share level security.

   Check it out, whether it works for you

Author Comment

ID: 8153114
Thanks that did the trick set up user accounts on linux to match the ones on the windows machines then I installed swat and webmin and with these two admin tools I'm up and ready to go. Sorry it took so long to get back with ya I was stuck on a different project .....and iwas not able to get back on this one as soon as I would have liked...I don't know about you guys but I hate being taken off of something when I know it isn't finished....anyway thanks jungle_kp you rock !!!

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month12 days, 14 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question