[CentOS] Re: new CentOS5.1, samba help requested

Thu Mar 27 15:16:31 UTC 2008
Dennis McLeod <dmcleod at foranyauto.com>

GOOD POINT about the "simple file sharing". I always forget to do this, and
scratch my head until I remember. This was a SP2 feature, I think.
I also turn off "Automatically search for network folders and printers." If
some body shares a printer on their machine, I don't want someone else
getting it installed (automatically) by XP, and then crying to me when the
first person turns off their computer.
D

-----Original Message-----
From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf
Of John R Pierce
Sent: Wednesday, March 26, 2008 4:49 PM
To: CentOS mailing list
Subject: Re: [CentOS] Re: new CentOS5.1, samba help requested

ok, virgin CentOS 4.6 w/ updates, was a minimal install.    From the top...

# yum -y install samba samba-swat
.....

# (edit /etc/xinetd.d/swat, put a # in front of disable=yes and only_from
127.0.0.1) # service xinetd reload

now, on any system with a webbrowser, visit http://hostname:901/ log on as
root, with the root password

click on the 'wizard' button.  click on the 'edit parameter values' button.
enter your preferred workgroup name, leave realm blank, set security to
USER, encrypt passwords YES, /IF/ you already use a WINS server for legacy
reasons, enter its IP as 'wins server' but do NOT set 'wins 
support' on...    now hit 'commit changes'
click on the 'wizard' button again. check 'sand alone', and 'exposue home
directories (*)yes;, click Commit.

this setup a very basic SMB.CONF w/ user home directories shared.

now, back at shell...

# chkconfig samba on
# service samba start
# useradd windowsuser && passwd windowsuser      # only if they don't 
already have a 'nix account)
(enter unix password, twice)
# smbpasswd -a windowsuser
(enter smb password, twice)


Now, and this is very important.  On XP Professional, go to Control Panel ->
Folder Options -> View, and scroll down the long list of options to the end,
AND TURN *OFF* USE SIMPLE FILE SHARING (RECOMMENDED)

Oh.  If you're using WIndows XP Home, forget it, you can't disable this, its
too lobotomized, all network connections are as "Guest" or something 
lame.    If you have Vista, I have no idea.  If you have Win2000 Pro, 
you're good, it didn't have the messed up 'simple file sharing' nonsense.

Anyways, assuming all of the above, from the windows station, start -> run
-> \\linuxserver\username
and voila, you should get your home directory in a window.   if it 
prompts for user/pass, enter it as specified above.    Don't freak if 
username gets changed into SERVERNAME\username, thats how windows
distinguinshes between DOMAIN\user and LOCAL\user accounts.


_______________________________________________
CentOS mailing list
CentOS at centos.org
http://lists.centos.org/mailman/listinfo/centos