FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2012
    Location
    usa
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Samba 3.6.6

    Hi
    I was running samba 2.0 on fedora 12 and everything was going fine for about 4 years then my hard drive died and I i figured its time to get fedora 17.0 kde 32 bt spin version , after installing that version of linux and going to samba.org and getting the most stable version in a rpm package and installing it with yum all went well.

    now trying to follow my old instructions below in stuck I have not done any linux worrk in 4 years and need help with editing the cfg file ,susie cfg and nmb files, can any one help me please?
    listed be low is my old directions and i can get them to work wwhen editing


    SHARE INSTRUCTIONS
    ------------------------
    1) Allow samba via firewall [fedora only]
    2) Allow samba via selinux [fedora only]
    (See: DISABLING SEILNUX)

    3) Install samba-server ( su -c 'yum install samba-server' )
    4) Mount drive with umask=0000 (fat32/ntfs only!, "see /etc/fstab" )
    5) In smb.conf set SECURITY=SHARE (this is the ONLY THING THAT WILL WORK)
    (See: security = share
    6) Set up share as outlined in smb.conf. browesable = yes; guest = ok;
    7) Set up NMB (see NMB)
    8) Restart samba, enjoy!


    NMB
    ---
    SENDS NETBIOS NAME
    Open: /etc/nsswitch.conf
    Change: "hosts: files dns" to "hosts: files dns wins"
    run "chkconfig nmb on"
    restart


    DISABLING SELINUX
    -----------------
    1) Open terminal
    2) Type: su
    (Enter root password)
    3) Type: vi /etc/selinux/config
    4) Change the line that says "SELINUX=enforcing" to "SELINUX=disabled"
    5) Reboot the machine
    6) Continue setting up the share

    /ETC/FSTAB
    -----------------
    This file automatically mounts the drives, every time you install Linux, it will give drives different unique identifiers.
    The FSTAB file I have backed up is specific to the Fedora 13 installation.

    You will *need* the last two lines:
    /dev/sdb1 /media/STORAGE1 ntfs-3g auto,nouser,uid=000 0 0
    /dev/sdc1 /media/STORAGE2 ntfs-3g auto,nouser,uid=000 0 0

    However "/dev/sdb1" and "/dev/sdc1" may not point to the right place, you can run: "su -c 'fdisk -l'"
    This lists all disks in the system, you can figure out which drive is which based on its size.
    The rest of that line can stay the same.
    You will have to run:
    "su -c 'mkdir /media/STORAGE1'"
    and
    "su -c 'mkdir /media/STORAGE2'"
    Otherwise Fedora will give you errors that it can't find the mount end-point.

  2. #2
    Join Date
    Nov 2008
    Location
    Canada
    Posts
    2,729
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Samba 3.6.6

    Ok... just a thought.

    Quote Originally Posted by fedora17
    Hi
    I was running samba 2.0 on fedora 12 and everything was going fine for about 4 years then my hard drive died and I i figured its time to get fedora 17.0 kde 32 bt spin version , after installing that version of linux and going to samba.org and getting the most stable version in a rpm package and installing it with yum all went well.

    now trying to follow my old instructions below in stuck I have not done any linux worrk in 4 years and need help with editing the cfg file ,susie cfg and nmb files, can any one help me please?
    listed be low is my old directions and i can get them to work wwhen editing


    SHARE INSTRUCTIONS
    ------------------------
    1) Allow samba via firewall [fedora only]
    2) Allow samba via selinux [fedora only]
    (See: DISABLING SEILNUX)
    Why would you need to disable SELinux?

    Quote Originally Posted by fedora17
    3) Install samba-server ( su -c 'yum install samba-server' )
    4) Mount drive with umask=0000 (fat32/ntfs only!, "see /etc/fstab" )
    5) In smb.conf set SECURITY=SHARE (this is the ONLY THING THAT WILL WORK)
    (See: security = share

    6) Set up share as outlined in smb.conf. browesable = yes; guest = ok;
    7) Set up NMB (see NMB)
    8) Restart samba, enjoy!
    Ewww, never Security=Share unless you know why you need it. In which case you still don't.

    Quote Originally Posted by fedora17
    NMB
    ---
    SENDS NETBIOS NAME
    Open: /etc/nsswitch.conf
    Change: "hosts: files dns" to "hosts: files dns wins"
    run "chkconfig nmb on"
    restart


    DISABLING SELINUX
    -----------------
    1) Open terminal
    2) Type: su
    (Enter root password)
    3) Type: vi /etc/selinux/config
    4) Change the line that says "SELINUX=enforcing" to "SELINUX=disabled"
    5) Reboot the machine
    6) Continue setting up the share
    Never had a need to do that. I say don't do that.

    Quote Originally Posted by fedora17
    /ETC/FSTAB
    -----------------
    This file automatically mounts the drives, every time you install Linux, it will give drives different unique identifiers.
    The FSTAB file I have backed up is specific to the Fedora 13 installation.

    You will *need* the last two lines:
    /dev/sdb1 /media/STORAGE1 ntfs-3g auto,nouser,uid=000 0 0
    /dev/sdc1 /media/STORAGE2 ntfs-3g auto,nouser,uid=000 0 0

    However "/dev/sdb1" and "/dev/sdc1" may not point to the right place, you can run: "su -c 'fdisk -l'"
    This lists all disks in the system, you can figure out which drive is which based on its size.
    The rest of that line can stay the same.
    You will have to run:
    "su -c 'mkdir /media/STORAGE1'"
    and
    "su -c 'mkdir /media/STORAGE2'"
    Otherwise Fedora will give you errors that it can't find the mount end-point.
    Why wouldn't you use blkid and bypass all that sillyness?

  3. #3
    Join Date
    Jul 2012
    Location
    usa
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Samba 3.6.6

    Ok im stumped ...can someone help me please ...maybe via remote or something im having to do things in order to move data over my network.. SOMEONE who knows how to work with samba ...and configure the correct files im desprate

  4. #4
    Join Date
    Nov 2008
    Location
    Canada
    Posts
    2,729
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Samba 3.6.6

    man blkid
    for ex.,
    Code:
    $blkid
    
    /dev/sda1: UUID="e26f2486-8b70-4992-a684-e9a7cf239279" TYPE="ext4" /dev/sda2: UUID="ce6d7b71-ae33-4641-8a39-c96e325b4769" TYPE="swap" /dev/sda3: UUID="f7a02161-f757-4105-a942-a28c0f0272d9" TYPE="ext4" /dev/sr0: LABEL="030908_1929" TYPE="iso9660" /dev/sdc1: UUID="d48735e3-a4ed-43f1-be89-c75b2feca37e" TYPE="ext4" LABEL="DataPartition_2" /dev/sdc2: LABEL="mock" UUID="11ce235d-01aa-4ed4-81bb-6262328b7447" TYPE="ext4"
    $cat /etc/fstab
    # # /etc/fstab # Created by anaconda on Wed Nov 9 15:43:47 2011 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # UUID=f7a02161-f757-4105-a942-a28c0f0272d9 / ext4 defaults 1 1 UUID=e26f2486-8b70-4992-a684-e9a7cf239279 /boot ext4 defaults 1 2 UUID=ce6d7b71-ae33-4641-8a39-c96e325b4769 swap swap defaults 0 0 # UUID=a41a813c-3c97-47a4-8678-7006a192e70b /mnt/DataPartition_1 ext4 defaults,acl 0 0 UUID=d48735e3-a4ed-43f1-be89-c75b2feca37e /mnt/DataPartition_2 ext4 defaults,acl 0 0 UUID=11ce235d-01aa-4ed4-81bb-6262328b7447 /var/lib/mock ext4 defaults,acl 0 0
    Code:
    su
    yum install system-config-samba
    yum install policycoreutilsgui
    cp /etc/samba/* ~
    yum reinstall samba
    system-config-samba
    system-config-selinux
    exit
    That's the short end of it. system-config-samba is painfully simple but adds users and shares quick enough. You can edit smb.conf for the rest. But yeah I'm indirectly pushing you to tdbsam and security = user. You should beable to locate the booleans in system-config-selinux. If not then do a getsebool -a |grep samba and set the ones you need. I really don't see anything else wrong but I'm not looking close either.

Similar Threads

  1. Replies: 1
    Last Post: 1st October 2010, 06:08 PM
  2. Replies: 3
    Last Post: 17th July 2008, 12:03 AM
  3. Replies: 10
    Last Post: 5th April 2008, 09:40 AM

Tags for this Thread

Posting Permissions

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