Fedora Linux Support Community & Resources Center
  #1  
Old 4th July 2012, 10:07 PM
fedora17 Offline
Registered User
 
Join Date: Jul 2012
Location: usa
Posts: 2
linuxfirefox
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.
Reply With Quote
  #2  
Old 5th July 2012, 12:02 AM
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,402
linuxfirefox
Re: Samba 3.6.6

Ok... just a thought.

Quote:
Originally Posted by fedora17 View Post
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 View Post
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 View Post
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 View Post
/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?
Reply With Quote
  #3  
Old 9th July 2012, 08:41 PM
fedora17 Offline
Registered User
 
Join Date: Jul 2012
Location: usa
Posts: 2
linuxfirefox
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
Reply With Quote
  #4  
Old 9th July 2012, 09:13 PM
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,402
linuxfirefox
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.
Reply With Quote
Reply

Tags
samba

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba shares available only after OKing them in Samba server config tool gizenshu Servers & Networking 1 1st October 2010 06:08 PM
Having to enter Samba password manually in Samba config screen after every reboot! Syncro Servers & Networking 3 17th July 2008 12:03 AM
Samba 2.2.x serving Samba client 3.0.26 cifs (mount error 13 = Permission denied) nnn Servers & Networking 10 5th April 2008 09:40 AM


Current GMT-time: 23:49 (Friday, 31-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
San Antonio de la Cal Instagram Photos - Lens - Alleppey