Page 104 of 106 FirstFirst ... 45494102103104105106 LastLast
Results 1,031 to 1,040 of 1059

Thread: HOWTO: Setup Samba peer-to-peer with Windows

  1. #1031
    Join Date
    Jul 2008
    Location
    montreal
    Beans
    54
    Distro
    Xubuntu 13.10 Saucy Salamander

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    is it possibale to make a 2nd network folder lets say copy all the settings from [MyFiles] and make another one below it like [Myfiles2] and have a diffrent home directory on a side note am i allowed to change the [MyFiles] to a diffrent name like [media]
    Last edited by killernat; April 16th, 2012 at 01:31 AM.

  2. #1032
    Join Date
    Jul 2008
    Location
    montreal
    Beans
    54
    Distro
    Xubuntu 13.10 Saucy Salamander

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    so yes i can do what i said after reading part of the samba manual it is a lot simpler than i had thought

  3. #1033
    Join Date
    Apr 2009
    Location
    Saitama, Japan
    Beans
    132
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    I cannot find the cause of why my shorewall is blocking samba. I had this installed in another ubuntu server and I didn't have to touch shorewall and I am able to see the server on my windows. Now after installing samba on a 11.10 server, shorewall is blocking in samba for some reason. If I shut down shorewall, samba works.

    Here is my shorewall rules.
    # mail lines
    SMTP/ACCEPT net $FW
    SMTPS/ACCEPT net $FW
    Submission/ACCEPT net $FW
    IMAP/ACCEPT net $FW
    IMAPS/ACCEPT net $FW

    # Web
    ACCEPT net fw icmp 8
    ACCEPT net fw icmp
    ACCEPT net fw tcp pop3,pop3s,imap2,imap,imaps,submission,8118,3128,9 43,8443,1194,45631,1723,49152
    ACCEPT net:216.162.217.194 fw tcp munin
    ACCEPT:ULOG net fw tcp 21,55535:65535

    SSH/ACCEPT net $FW
    HTTP/ACCEPT net $FW
    HTTPS/ACCEPT net $FW

    SMB(ACCEPT) fw loc
    SMB(ACCEPT) loc fw

    FTP(ACCEPT) loc net

    #LAST LINE -- DO NOT REMOV

  4. #1034
    Join Date
    Apr 2009
    Location
    Saitama, Japan
    Beans
    132
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    Quote Originally Posted by duceduc View Post
    I cannot find the cause of why my shorewall is blocking samba. I had this installed in another ubuntu server and I didn't have to touch shorewall and I am able to see the server on my windows. Now after installing samba on a 11.10 server, shorewall is blocking in samba for some reason. If I shut down shorewall, samba works.

    Here is my shorewall rules.
    I fixed my issue of shorewall blocking samba. I changed the setting in /usr/share/shorewall/macro.SMB

    I replaced 'PARAM' to 'ACCEPT' on all cases.

  5. #1035
    Join Date
    Mar 2012
    Beans
    8

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    Samba is almost working, but I can't seem to get my credentials justified in order to map the network drive.
    I have an Ubuntu 11.10 machine and a windows 7 for my SOHO. I preceded with the following steps
    1. I created an Ubuntu group called "sohonetwork"

    sudo groupadd sohonetwork

    2. On my Ubuntu box, I created a folder under / .

    sudo mkdir NetworkFileSystem

    3. I then changed the group association of that folder

    sudo chgrp sohonetwork NetworkFileSystem

    4. Set additional permission parameters:

    sudo chmod g+rws /NetworkFileSystem

    5. Then I installed Samba and altered the /etc/samba/smb.conf (I made a copy) to recognize the workgroup and create the samba share:

    workgroup = HOMENET

    [NetworkFileSystem]
    path = /NetworkFileSystem
    browseable = yes
    read only = no
    guest ok = no
    create mask = 0777
    directory = 0755
    force user = homeuser

    6. Finally, I created an Ubuntu user and added it to the group

    sudo useradd -G sohonetwork -p "Password1" homeuser

    Now, my Windows 7 box (which has GUI capability to map drives) recognizes my file server, but cannot map to the folder because my credentials are rejected. I tried homeuser "Password1" as well as my root administrator credentials. It's not letting me in. I even tried totally freeing up the folder with the following command:

    sudo chmod 0777 /NetworkFileSystem

    I have broken down and recreated the setup many times and I get the same results. Am I missing anything? The bummer of all this is that I had Samba working before perferctly but unfortunately I has prompted to reinstall Ubuntu due to disk space issue and redo all this.

    What am I missing? Please help? Thanks, Dave

  6. #1036
    Join Date
    Dec 2009
    Beans
    6,767

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    Unlike Windows where there is only "the" user, Linux and Samba maintain two separate structures for users. You created a Linux user named "homeuser" and it sounds like you want to use that user name to access the Samba share but it doesn't sound like you added him to the Samba password database:
    Code:
    sudo smbpasswd -a homeuser
    You will be asked for sudo's password and then it will ask you for homeuser's samba password. It can be the same as the login password or it can be something different.

    EDIT: You also have a mistake in your share definition:
    directory = 0755
    Did you mean directory mask?

    You know, when you use "force user" there's really no need for create or directory masks or steps 1, 3, and 4. All remote users after authentication will be converted to the user homeuser. So if you set up a new user called morbius I will have to authenticate as morbius but should I save something to that share it will save with owner = homeuser.
    Last edited by Morbius1; March 18th, 2012 at 08:15 PM.

  7. #1037
    Join Date
    Mar 2012
    Beans
    8

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    I did create a samba user as well and it still locked me out.

    and I did mean directory mask (I mistyped in the forum).

    I'd to give it another shot. How do I undo everything and start from scratch?

    Thanks Morbius1, Crackouch

  8. #1038
    Join Date
    Mar 2012
    Beans
    8

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    Morbius1...Thanks for helping. But I am not quite there yet

    I whittled down my commands as follows:

    1. On my Ubuntu box, I created a folder under / .

    sudo mkdir NetworkFileSystem

    2. Then I installed Samba and altered the /etc/samba/smb.conf (I made a copy) to recognize the workgroup and create the samba share:

    workgroup = HOMENET

    [NetworkFileSystem]
    path = /NetworkFileSystem
    browseable = yes
    read only = no
    guest ok = no
    force user = homeuser

    3. I created an Ubuntu user and added it to the group

    sudo useradd -p "Password1" homeuser

    4. I created a Samba user

    sudo smbpasswd -a homeuser

    Now, with my Windows 7 box, I was able to map the drive. But I cannot copy folders and files from an external USB drive to it. It says I don't have the permissions to do so.

    Please help when you can. Thanks, Dave

  9. #1039
    Join Date
    Dec 2009
    Beans
    6,767

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    "sudo mkdir /NetworkFileSystem" created a folder that is owned by root with full access to root but only read access to everyone else. You need to make it write accessible for someone other that root. One way:
    Code:
    sudo chmod 0777 /NetworkFileSystem

  10. #1040
    Join Date
    Mar 2012
    Beans
    8

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    Thanks so much again. I have fully documented the procedure this time around!!

    Crackouch

Page 104 of 106 FirstFirst ... 45494102103104105106 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •