Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

More Samba Problems!

  • 08-10-2007 8:54pm
    #1
    Registered Users, Registered Users 2 Posts: 1,629 ✭✭✭


    Ok, I beg you dont flame me! - I know I have posted problems on this before.

    I just felt that I might get a better response if I post a more detailed description.

    Here goes!


    I am trying to share files between my Ubuntu Linux and Mac OS X.

    Ubuntu is running on VMWARE - (Virtual Machine).

    I have installed Samba -

    Created a samba password using:
    sudo smbpasswd -a <username>
    

    The username I used was Shane. So I typed:
    sudo smbpasswd -a shane
    

    I then added this user to the smbusers file:
    sudo vi /etc/samba/smbusers
    

    This is the format I entered it in:
    administrator = "shane"
    

    I assume the above maps the ubuntu user "administrator" to the samba user Shane?

    For testing purposes I am using the password "support"

    I have configured the shared home directories as expected.

    On the mac:

    Finder -> GO -> Connect to server
    I enter the details in the image below.

    Picture1-3.png

    Then there is a pause when connecting like so:

    Picture2-3.png

    I am then presented with this window:

    Picture3.png

    I change the fields (using the password "support") like so:

    Picture4.png

    I click connect and this is what I get :

    Picture5.png






    If anyone has any suggestions I would appreciate hearing them.
    If anyone has spotted that I have done something wrong it would be a great help to point it out.


    I think I should add that I am using Ubuntu Server with no GUI (Command Line Only).


Comments

  • Registered Users, Registered Users 2 Posts: 1,629 ✭✭✭NullZer0


    Im going to throw myself off the roof of central bank.


  • Registered Users, Registered Users 2 Posts: 6,424 ✭✭✭440Hz


    Did you try creating an 'admin' user and checking the psword file against 'administrator'. From what we looked at last night im not sure that your user is being added to the password file in etc/samba/ correctly, if at all. Maybe try deleting the 'shane' user you created, which you mapped, and started afresh.

    smbpasswd -d username

    Worth a go anyway.


  • Registered Users, Registered Users 2 Posts: 6,163 ✭✭✭ZENER


    administrator = "shane"

    Why do you have quotes around your username ? Try removing them and see what happens. AFAIK quotes are only needed if your username contains a space, e.g. "joe bloggs"

    Also try connecting to the share as root and see if that validates. Also I think any user you add to smbpassword has to be an existing Linux user.

    ZEN


  • Registered Users, Registered Users 2 Posts: 6,424 ✭✭✭440Hz


    ZENER wrote:
    Also try connecting to the share as root and see if that validates. Also I think any user you add to smbpassword has to be an existing Linux user.

    ZEN

    Yeah I mentioned that last night, not sure if he tried that out or not.

    Username must exist in /etc/passwd file else you will need the use ‘useradd’ to create a user in Linux

    useradd -d /home/username -s /bin/false -n username


  • Registered Users, Registered Users 2 Posts: 6,163 ✭✭✭ZENER


    Sorry didn't see that there.

    I'm fairly sure the problem is the quotes around his name. It should take the form
    Unix_name = SMB_name1 SMB_name2
    

    no quote marks !

    Also from a shell on Ubuntu run the testparm command to check the validity of the smb.conf file.
    [root]# testparm
    

    Also check smb.conf for the line
    encrypt passwords = yes
    

    in the Globals section. For some reason SWAT doesn't add this line in current versions of Samba. Or if it's already there it actually deletes it !

    A couple of tips:

    Instead of using "Connect To Server . . " from the Go menu, try clicking the Network icon in the Finder window. This will list all available networks, Workgroups and shares.

    Once you have the share mounted on the desktop simply drag it to the Dock to the section beside the Trashcan. Makes it easier to get at in future.

    ZEN


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 6,424 ✭✭✭440Hz


    ZENER wrote:
    Sorry didn't see that there.

    Nope, I didn't post it, nothing to apologise for. We were just trying to troubleshoot it last night and went through some ideas.


  • Registered Users, Registered Users 2 Posts: 1,629 ✭✭✭NullZer0


    Thanks for the help last night 440Hz and for the replies Zener.

    I'm going to try the suggested as soon as I get home.


    Cheers!


  • Registered Users, Registered Users 2 Posts: 6,163 ✭✭✭ZENER


    Hey iRock, any news on this ? Did you get it sorted ?

    ZEN


  • Registered Users, Registered Users 2 Posts: 1,629 ✭✭✭NullZer0


    Was in so much hurry I ran it on a Windows server instead! Going to work on it over the next few days though to get an understanding of it.

    Maybe thisevening if I can manage to wade my way through all the rest of the things that I have to get done :(


  • Registered Users, Registered Users 2 Posts: 1,629 ✭✭✭NullZer0


    Thankyou everyone for the help.

    I was messing about thisevening with a VM and I found this while browsing Ubuntu Forums:
    http://ubuntuforums.org/showthread.php?t=202605

    This seemed to solve everything for me.

    Of course from the command line replace gedit with vi or nano.


    ;) - On top of the world!


  • Advertisement
Advertisement