Swat. Admin username and password required
info at alvin.be
Tue Mar 23 16:34:27 GMT 2010
On Tuesday 23 March 2010 17:04:38 Nigel Henry wrote:
> On Tuesday 23 March 2010 09:40, Alvin wrote:
> > On Saturday 20 March 2010 20:17:46 Nigel Henry wrote:
> > > I'm having an awfull job getting samba server on Debian Lenny
> > > accessable from Kubuntu Intrepid, having set up the samba server using
> > > swat on Lenny. I thought of trying the samba server on Intrepid, and
> > > accessing it from Lenny. , but swat "http://localhost:901/" wants an
> > > admin username and password, and there is no way to do that with
> > > Kubuntu, as far as I know.
> > >
> > > My username and password only give limited access to parts of swat,
> > > with no way to configure /etc/samba/samba.conf, which requires root
> > > access.
> > >
> > > Anyone know a workaround to this problem.
> > Those are different problems. I read:
> > - You want to run a samba server on Debian Lenny, but it does not work.
> > - You then want to run samba + swat on Intrepid, but it asks for thr not-
> > existing root password.
> > First, the problem you have on Lenny could stop it working the other way
> > around. I'd search first for a solution there.
> Ok, I've fixed the samba server on Lenny after a bit of google, and finding
> out how to add the user and password to /etc/samba/smbpasswd.
That's great, but more on the smbpasswd further.
> Thats odd. Just looked in /etc/samba on Kubuntu Intrepid, and there is no
> smbpasswd file. I suppose I just create it.
It's possible there isn't one. Storing account information in smbpasswd is
just one of the methods. If it is, find it's location like this:
$ smbd -b | grep SMB_PASSWD_FILE
In smb.conf, this choice is in [global]. Look for 'passdb backend'.
By default, current versions of samba store user information in TDB files. In
Ubuntu, this is in /var/lib/samba. You need utilities like pdbedit to view of
SWAT is unmaintained and outdated. I don't know the effect of using it on
current samba installations. Just add users with:
$ smbpasswd -a <username>
> > The second problem is a bug in the Ubuntu packaging of SWAT:
> > https://bugs.launchpad.net/ubuntu/+bug/5608
> > There are workarounds in the bug report.
> Right. Thanks for the link to the bug report. comment 8 worked by doing the
> following, and now I can get swat up using the normal user name, and
> sudo chgrp adm /etc/samba/smb.conf
> sudo chmod g+w /etc/samba/smb.conf
> > Is there a specific reason you're using MS Windows networking between
> > Linux hosts instead of NFS?
> Well my son has an MS vpn server using pptp. I can access it ok using an
> old XP install, but have problems with accessing the data on it from my
> linux os's. This is why I'm messing about with samba on the linux boxes,
> to make sure that I can retrieve data from a samba server.
Aha, in that case you don't need a samba server. You only need the client
files (smbclient). They are installed in Ubuntu by default.
For mounting you'll need smbfs.
Seeing as this is kubuntu-users, you probably want the smb kioslave.
Everything you need here is already installed (kubuntu-desktop)
(ok, you don't have much choice in protocol there. The NFS kioslave has been
broken for the entire KDE4 release.)
In krunner, dolphin, konqueror,... use smb://<servername> to access the
Windows server after making the VPN connection.
You can also go to smb:/ (or click on network > Samba Shares in Dolphin) and
Add a Network Folder, in case you need a username/pass. Default username and
pass can be placed in 'System Settings'.
> I can connect to the vpn server ok from Intrepid, and Archlinux, although
> the Wireshark output is a lot different on Linux to what it is on XP. The
> MS vpn server uses MPPC compression, and I found an MPPC patched kernel,
> and pppd for Archlinux, but not for Intrepid. there were a couple of
> earlier ones, a 2.6.15 for Dapper, and a 2.6.17.
> I think I also need to create a route to the addresses that are asigned by
> the vpn server once connected. Not sure how to do that.
> Anyway thanks for your reply, it's appreciated.
You're welcome. I can't help you with the VPN part, but I think network-
manager was somehow developed for that and it's included in your installation.
Maybe it can load modules for your kernel? I see a button there (in Karmic)
labeled 'use MPPC'.
More information about the kubuntu-users