[brlug-general] Help my Ubuntu LAMP server with FTP and Samba
Dustin Puryear
dustin at puryear-it.com
Mon Nov 13 13:09:17 CST 2006
Samba will eventually reread its configuration and "reload" itself
automatically. However, I'm not sure that this applies to all changes,
e.g., oplocks.
---
Puryear Information Technology, LLC
Baton Rouge, LA * 225-706-8414
http://www.puryear-it.com
Author:
"Best Practices for Managing Linux and UNIX Servers"
"Spam Fighting and Email Security in the 21st Century"
Download your free copies:
http://www.puryear-it.com/publications.htm
Friday, November 10, 2006, 8:33:13 PM, you wrote:
> Yes. Anytime you make a change to smb.conf, you have to restart the
> service, as that configuration file is read when samba starts. That
> same procedure to most of the configuration files in /etc.
> Anybody which services don't need restarting when a change is made
> to a configuration file somewhere under /etc?
> John Hebert
> ----- Original Message ----
> From: Joe Fruchey <ignavia at gmail.com>
> To: general at brlug.net
> Sent: Friday, November 10, 2006 5:22:12 PM
> Subject: Re: [brlug-general] Help my Ubuntu LAMP server with FTP and Samba
> I can't believe I didn't read the beginning of the file... I was a bit
> confused by the double-character commenting scheme, but it makes sense
> to me now.
> I don't have vpn access at work, so I'll have to wait to test any of
> the settings until Monday. Some of those things i _did_ uncomment,
> with no effect. Unless... do I have to restart samba to reload the
> smb.conf? Well, of course I do, silly me.
> sudo /etc/init.d/samba restart should do the trick, right?
> On 11/10/06, John Hebert <johnahebert at yahoo.com> wrote:
>> Joe,
>>
>> There is one thing you will learn about Linux: always read the docs, etc. ;)
>>
>> # Any line which starts with a ; (semi-colon) or a # (hash)
>> # is a comment and is ignored. In this example we will use a #
>> # for commentary and a ; for parts of the config file that you
>> # may wish to enable
>>
>> ...
>>
>> ;[homes]
>> ; comment = Home Directories
>> ; browseable = yes
>> ...
>> ; valid users = %S
>> ...
>> ; writable = yes
>>
>> Take out the semi-colons and try again. There are lots of other settings you can enable in that file.
>>
>> Good luck!
>>
>> John Hebert
>>
>>
>> ----- Original Message ----
>> From: Joe Fruchey <ignavia at gmail.com>
>> To: general at brlug.net
>> Sent: Friday, November 10, 2006 1:31:53 PM
>> Subject: Re: [brlug-general] Help my Ubuntu LAMP server with FTP and Samba
>>
>> I'm good for tools... I've been using PuTTY from the get-go for SSH,
>> and I've been using WinSCP for SFTP today. I wish I had known about
>> that before...
>>
>> I'm attaching my smb.conf. Like I said, I got the configuration
>> instructions from some site, so I don't really know what I did...
>>
>> On 11/10/06, John Hebert <johnahebert at yahoo.com> wrote:
>> > Good point, Petri.
>> >
>> > Another great little set of SSH tools is Putty:
>> > http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
>> >
>> > It provides the psftp.exe and pscp.exe command line tools, as well as a nice little GUI SSH client. They do a great job, are small and require no install.
>> >
>> > John Hebert
>> >
>> > ----- Original Message ----
>> > From: Petri Laihonen <pietu at weblizards.net>
>> > To: general at brlug.net
>> > Sent: Friday, November 10, 2006 10:45:15 AM
>> > Subject: Re: [brlug-general] Help my Ubuntu LAMP server with FTP and Samba
>> >
>> > There is no need to install cygwin in order to get unix tools in windows.
>> > There are several packages of most needed ones ported to winblows.
>> >
>> > here is one package.
>> > http://unxutils.sourceforge.net/
>> >
>> > www.sysinternals.com had a very good collection of unix tools. However
>> > it seems like they are not as easy to get anymore as microsoft bought
>> > the company and spread the collection into multiple single programs.
>> > (not convenient to acquire anymore....)
>> >
>> > Petri
>> >
>> > John Hebert wrote:
>> > > You can also install CygWin (http://www.cygwin.com) to get Unix tools on Windows.
>> > >
>> > > Send us your smb.conf if it is not too big so we can take a look at it.
>> > >
>> > > John Hebert
>> > >
>> > > ----- Original Message ----
>> > > From: Dustin Puryear <dustin at puryear-it.com>
>> > > To: Joe Fruchey <general at brlug.net>
>> > > Sent: Friday, November 10, 2006 8:45:49 AM
>> > > Subject: Re: [brlug-general] Help my Ubuntu LAMP server with FTP and Samba
>> > >
>> > > That's it.
>> > >
>> > > If you are using Windows at home use WinSCP. Otherwise, use scp or
>> > > sftp from the Linux or UNIX command-line.
>> > >
>> > > ---
>> > > Puryear Information Technology, LLC
>> > > Baton Rouge, LA * 225-706-8414
>> > > http://www.puryear-it.com
>> > >
>> > > Author:
>> > > "Best Practices for Managing Linux and UNIX Servers"
>> > > "Spam Fighting and Email Security in the 21st Century"
>> > >
>> > > Download your free copies:
>> > > http://www.puryear-it.com/publications.htm
>> > >
>> > >
>> > > Friday, November 10, 2006, 8:22:17 AM, you wrote:
>> > >
>> > >
>> > >> Sorry...
>> > >>
>> > >
>> > >
>> > >> I *did* create a samba user, and I can log in with those credentials,
>> > >> I just don't see any shares after doing so.
>> > >>
>> > >
>> > >
>> > >> As for ftp, sftp sounds like the way to go. I have ssh running on the
>> > >> server, and I can login with it from home... what more do I need for
>> > >> sftp?
>> > >>
>> > >
>> > >
>> > >> Thanks.
>> > >>
>> > >
>> > >
>> > >
>> > >
>> > >> On 11/9/06, John Hebert <johnahebert at yahoo.com> wrote:
>> > >>
>> > >>> Joe,
>> > >>>
>> > >>> I think you are leaving out a few important details.
>> > >>>
>> > >>> First, I assume you mean you have a Linux server at work, correct? And that you also have a Windows XP workstation at work that you use to connect to your Linux server at work. Do you have Windows XP Pro or Windows XP Home. They are different.
>> > >>>
>> > >>> Finally, you want to get to your Linux server from a PC at your home.
>> > >>>
>> > >>> Is this all correct?
>> > >>>
>> > >>> If this is true, then you also need to tell us if you are using a router/firewall in between your work and home computers and your respective Internet connections at each location. If not, you should be.
>> > >>>
>> > >>> I don't recommend that you use FTP over the Internet, as FTP sends passwords in clear text and can be intercepted. It is more secure to use SFTP (http://en.wikipedia.org/wiki/SSH_file_transfer_protocol).
>> > >>>
>> > >>> Also, concerning your Samba configuration; you probably just need to create the Samba accounts. Samba has its own password database in addition to your local server password database.
>> > >>>
>> > >>> Do this:
>> > >>> 'smbpasswd -a username' where username is your Linux username and is also the same username on your Windows XP workstation. You may need to create a new user on your Linux server to match your Windows XP box. Make sure the passwords match exactly.
>> > >>>
>> > >>> Then, restart samba, and try accessing your Linux server from your Windows XP box again.
>> > >>>
>> > >>> Good luck!
>> > >>>
>> > >>> John Hebert
>> > >>>
>> > >>>
>> > >>> ----- Original Message ----
>> > >>> From: Joe Fruchey <ignavia at gmail.com>
>> > >>> To: general at brlug.net
>> > >>> Sent: Thursday, November 9, 2006 9:14:47 PM
>> > >>> Subject: [brlug-general] Help my Ubuntu LAMP server with FTP and Samba
>> > >>>
>> > >>> okay, I've done the following...
>> > >>>
>> > >>> aptitude install samba smbfs proftpd
>> > >>>
>> > >>> I edited the smb.conf like some site told me to to allow access to my
>> > >>> home dir, but it didn't work. If I type \\wiki from my XP box at work,
>> > >>> I get a login prompt, I log in, but all I see is a 'Printers and
>> > >>> Faxes' share. What gives?
>> > >>>
>> > >>> And while Samba is great for at work, I'd like ftp for when I'm at
>> > >>> home. What more do I have to do with proftpd beyond the install? If I
>> > >>> try to ftp from work, I get an 'unknown error,' and from home, I
>> > >>> get...
>> > >>>
>> > >>> Connected to wiki.lafourche.k12.la.us.
>> > >>> Connection closed by remote host.
>> > >>>
>> > >>> Any thoughts?
>> > >>>
>> > >>> Joe
>> > >>>
>> > >>> _______________________________________________
>> > >>> General mailing list
>> > >>> General at brlug.net
>> > >>> http://mail.brlug.net/mailman/listinfo/general_brlug.net
>> > >>>
>> > >>>
>> > >>>
>> > >>>
>> > >>>
>> > >>>
>> > >>> ____________________________________________________________________________________
>> > >>> Want to start your own business?
>> > >>> Learn how on Yahoo! Small Business.
>> > >>> http://smallbusiness.yahoo.com/r-index
>> > >>>
>> > >>> _______________________________________________
>> > >>> General mailing list
>> > >>> General at brlug.net
>> > >>> http://mail.brlug.net/mailman/listinfo/general_brlug.net
>> > >>>
>> > >>>
>> > >
>> > >
>> > >> _______________________________________________
>> > >> General mailing list
>> > >> General at brlug.net
>> > >> http://mail.brlug.net/mailman/listinfo/general_brlug.net
>> > >>
>> > >
>> > >
>> > > _______________________________________________
>> > > General mailing list
>> > > General at brlug.net
>> > > http://mail.brlug.net/mailman/listinfo/general_brlug.net
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > ____________________________________________________________________________________
>> > > Cheap talk?
>> > > Check out Yahoo! Messenger's low PC-to-Phone call rates.
>> > > http://voice.yahoo.com
>> > >
>> > > _______________________________________________
>> > > General mailing list
>> > > General at brlug.net
>> > > http://mail.brlug.net/mailman/listinfo/general_brlug.net
>> > >
>> > >
>> >
>> > _______________________________________________
>> > General mailing list
>> > General at brlug.net
>> > http://mail.brlug.net/mailman/listinfo/general_brlug.net
>> >
>> >
>> >
>> >
>> >
>> >
>> > ____________________________________________________________________________________
>> > Want to start your own business?
>> > Learn how on Yahoo! Small Business.
>> > http://smallbusiness.yahoo.com/r-index
>> >
>> > _______________________________________________
>> > General mailing list
>> > General at brlug.net
>> > http://mail.brlug.net/mailman/listinfo/general_brlug.net
>> >
>>
>> _______________________________________________
>> General mailing list
>> General at brlug.net
>> http://mail.brlug.net/mailman/listinfo/general_brlug.net
>>
>>
>>
>>
>>
>>
>> ____________________________________________________________________________________
>> Want to start your own business?
>> Learn how on Yahoo! Small Business.
>> http://smallbusiness.yahoo.com/r-index
>>
>> _______________________________________________
>> General mailing list
>> General at brlug.net
>> http://mail.brlug.net/mailman/listinfo/general_brlug.net
>>
> _______________________________________________
> General mailing list
> General at brlug.net
> http://mail.brlug.net/mailman/listinfo/general_brlug.net
>
> ____________________________________________________________________________________
> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail beta.
> http://new.mail.yahoo.com
> _______________________________________________
> General mailing list
> General at brlug.net
> http://mail.brlug.net/mailman/listinfo/general_brlug.net
More information about the General
mailing list