FC2 - Samba setup

Mark Knecht markknecht at gmail.com
Fri Dec 10 03:41:44 UTC 2004


Whoopie! I got part of it working. Browsing from my Win XP Pro laptop
to the shares on the FC2 box required running smbpasswd as root and
adding user mark to the smb password file.


On Thu, 9 Dec 2004 18:19:03 -0800, Mark Knecht <markknecht at gmail.com> wrote:
> On Thu, 09 Dec 2004 18:06:26 -0800, Rick Stevens
> 
> 
> <rstevens at vitalstream.com> wrote:
> > Mark Knecht wrote:
> >
> >
> > > On Fri, 10 Dec 2004 02:03:42 +0200, Kostas Sfakiotakis
> > > <kostassf at cha.forthnet.gr> wrote:
> > >
> > >>Greetings Mark ,
> > >
> > > <SNIP>
> > >
> > >>[root at Magellan root]# rpm -qa | grep samba*
> > >>samba-client-3.0.5-2.FC1.1
> > >>redhat-config-samba-1.1.4-1
> > >>samba-3.0.5-2.FC1.1
> > >>samba-common-3.0.5-2.FC1.1
> > >>samba-swat-3.0.5-2.FC1.1
> > >
> > >
> > > Using yum I got most of it but I cannot find redhat-config-samba.
> > >
> > > [root at Godzilla root]# rpm -qa | grep samba*
> > > samba-client-3.0.9-1.fc2
> > > samba-common-3.0.9-1.fc2
> > > samba-3.0.9-1.fc2
> > > samba-swat-3.0.9-1.fc2
> > > [root at Godzilla root]#
> >
> > The equivalent in FC2 is "system-config-samba".  In fact, the latest RPM
> > is "system-config-samba-1.2.22-0.fc2.1.noarch.rpm".  A simple "yum
> > install system-config-samba" should grab it for you if you don't have it
> > installed yet.  The path to the executable is
> > "/usr/bin/system-config-samba".
> >
> > To explain, the names of the python setup stuff changed.  What was
> > "redhat-config-*" in RH9/FC1 became "system-config-*" in FC2/FC3.  If
> > you were used to, say, "redhat-config-network" in RH9/FC1, then you'd
> > use "system-config-network" in FC2/FC3.  Subtle and confusing, eh?  It's
> > in the release notes for FC2 if you wish to check.
> >
> >
> >
> > >>Mark ( The problem is that Rick Stevens was my original Master
> > >>and i can't really replicate him ) , basically all you need to do is
> > >>launch SWAT .
> > >>In order to achieve this just check your  /etc/services
> > >>file for  a line like the one bellow :
> > >>
> > >>swat            901/tcp                         # Samba Web
> > >>Administration Tool
> > >>
> > >>Then in /etc/xinetd.d/swat  , just make sure that there is a line that
> > >>says
> > >>
> > >>disable =  no .
> >
> > Actually, to enable a listener in xinetd you can have EITHER of these
> > two lines in the file:
> >
> >         disable = no
> >         enable = yes
> >
> > Conversely, to disable you can use either of THESE two lines:
> >
> >         disable = yes
> >         enable = no
> >
> > Remember, only use ONE of the lines, not both.  Don't you love options?
> > Personally, I prefer the "enable=" form...but that's just me.
> >
> > >>Then after your restart xinetd , all you have to do is
> > >>
> > >>#service swat start.
> >
> > Actually, no.  After editing the file, you must restart xinetd or send
> > it a SIGHUP.  Any one of these three commands will work:
> >
> >         killall -HUP xinetd
> >         /etc/rc.d/init.d/xinetd restart
> >         service xinetd restart
> >
> > Then point your browser at http://localhost:901 and join the swat fun!
> > There's lots of on-line help in swat, so don't worry too much.
> >
> > > Everything seemed fine up to this point but the 'service ' wouldn't
> > > start. None the less Swat is available through my browser and
> > > serviceconf says it's running so this much seems OK.
> >
> > You have to restart xinetd as I've shown above.  xinetd only reads
> > its config files when it receives a SIGHUP or when it's restarted.
> > The first command above sends it a SIGHUP.  The next two stop and
> > restart it.  Your choice as to which is easier for you (I use the
> > "killall" because I'm a lean, mean, killin' machine!  Heheheheh!)
> 
> Thanks RIck,
>    Most of this I've semi pieced together on my own in the last hour
> or two, Your explanation is clearer though. Thanks.
> 
>    At this point I've managed to see my FC box from a Win XP Pro
> laptop. I've made a couple of shares, marked them as browsable, but
> when I double click in XP I get a login dialog. I enter my Linux
> user/password (which match my Win XP Pro user/password) but the dialog
> just keeps returning.
> 
>    Possibly this is the encrypted/unencrypted password thing? (Hope not...)
> 
>    So far I do not seem to be able to see shared directories on the
> Windows boxes from my FC2 machine.
> 
>    I have many things to learn to set up. File sharing both ways is
> step #1, and then printing will follow.
> 
>    Thanks in advance for any other pointers.
> 
> - Mark
>




More information about the Redhat-install-list mailing list