Re: [newbie] Samba Server

2005-03-19 Thread Anne Wilson
On Saturday 19 Mar 2005 08:33, Elwyn wrote:
 Hiya Folks

 What I'd like to do is set up a shared area within our network that all our
 (family) music files are on, plus other bits and bobs, that will only share
 files for most of its hard drive.

 I've already got a working Samba place on this machine but I'm debating how
 to go about this.

 Basically the box wil be without monitor, keyboard, mouse etc. Just have
 power and network to it.

 However, the small problem I have is that as it is a closed secured network
 I don't want any username and passwords? Is that possible??

 Because one of the problems I have is any files created with one ID cannot
 be moved/deleted with another ID, or have I missed something fundemental
 out??

Using Groups it's possible to sort that problem.  Make sure that everyone is 
in one group - either use User or create one for the purpose.  Then, in 
konqueror, go to the folder that represents the whole of the shared area.  As 
root, change the group to the chosen one and Set GID on the advanced 
permissions page, then check Apply changes to all subdirectories and their 
contents.  That should work.

Be aware, though, that you no longer have any kind of control over who does 
what, so anything you value should be copied there, not moved there.

Anne
-- 
Registered Linux User No.293302 (http://counter.li.org/)
Have you visited http://twiki.mdklinuxfaq.org yet?  Mandrake at all levels


pgpk7cOq5beI1.pgp
Description: PGP signature


Re: [newbie] Samba Server

2005-03-19 Thread Elwyn
Alas my plans have gone a bit pear shaped.

The machine destined to become a server, whilst quiet and with enough memory 
has transpired to not support the required drives.

A variety of words spring to mind, most unrepeatable here ;(

So the 80gb drive is going in this linux machine and I'll modify the network 
to suit.

Thank you Anne for your description. Having also spoken to anther network 
freind here I think it'll be easier to stick to a shared user ID and 
password.

Cheers

Elwyn


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Samba Server

2005-03-19 Thread Mikkel L. Ellertson
Elwyn wrote:
Hiya Folks
What I'd like to do is set up a shared area within our network that all our 
(family) music files are on, plus other bits and bobs, that will only share 
files for most of its hard drive.

I've already got a working Samba place on this machine but I'm debating how to 
go about this.

Basically the box wil be without monitor, keyboard, mouse etc. Just have power 
and network to it.

However, the small problem I have is that as it is a closed secured network I 
don't want any username and passwords? Is that possible??

Because one of the problems I have is any files created with one ID cannot be 
moved/deleted with another ID, or have I missed something fundemental out??

Cheers, Elwyn
This all depends on how you set up the share. You can use the force 
user and force group options when defining the share so that all 
files will be owned by the same user/group. You may also want to set it 
up so that guests can read, but not create/change/delete files.

Another way would be to set up security = share instead of user. It 
isn't used as often, and I am not sure how well the GUI config tools 
work with it, but it is something to look into.

I prefer to leave security set to user, and the force user option. That 
way, you can still have private home shares for each user, but that is 
just me...

Mikkel
--
  Do not meddle in the affairs of dragons,
for you are crunchy and taste good with Ketchup!

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Samba Server

2005-03-19 Thread Elwyn
Thanks, I'll keep looking into options...

Elwyn


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



RE: [newbie] Samba server not working

2004-05-27 Thread Video 4Linux
Can you read/write on a EXT2 FAT with a Windows machine connected to Samba? 
I thought that FAT32 was required for that? But maybe I'm confused with 
sharing a partition with a dual boot machine with Win and Linux (which I 
don't have).

Bas
From: Bill Shirley [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: [newbie] Samba server not working
Date: Wed, 26 May 2004 21:39:15 -0400

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Video 4Linux
 Sent: Wednesday, May 26, 2004 8:01 AM
 To: [EMAIL PROTECTED]
 Subject: [newbie] Samba server not working


 I'm trying to set up a Samba server on my Linux Mandrake 10 machine. 
I've
 copied the smb.conf settings from the Samba Howto and look like this:

 [global]
 workgroup = Thuis
 netbios name = Linux
 printcap name = cups
 disable spoolss = Yes
 show add printer wizard = No
 printing = cups
 [homes]
 comment = Home Directories
 valid users = %S
 read only = No
 browseable = No
 [public]
 comment = Data
 path = /share
 force user = bas
 force group = users
 guest ok = Yes
 [printers]
 comment = All Printers
 path = /var/spool/samba
 printer admin = root, bas
 create mask = 0600
 guest ok = Yes
 printable = Yes
 use client driver = Yes
 browseable = No

 I started the smb and nmb services which repsond both with [OK].

 But when I run the command smbclient -L localhost I get:

 session request to LOCALHOST failed (Call returned zero bytes (EOF))
 session request to *SMBSERVER failed (Call returned zero bytes (EOF))


It's 'smbclient -L netbiosname', so for you it's:
smbclient -L Linux
 Note that because I want to share a certain partition with a windows XP
 machine /share is mounted at a FAT32 partition. No idea if that has
samba can share out any partition.  You don't have to make it a FAT
partition.  All my shares are ext3.  Unless this is a partition that
already has data, I would recomment NOT to use FAT.
 something to do with my problems. I also cannot chown the /share folder
 (operation not permitted). It is now owned by root.

 Help is very welcome.

 Bas

 _
 Protect your PC - get McAfee.com VirusScan Online
 http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963




Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com

_
Play online games with your friends with MSN Messenger 
http://messenger.msn.nl/



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Samba server not working

2004-05-27 Thread Derek Jennings
On Thursday 27 May 2004 12:00, Video 4Linux wrote:
 Can you read/write on a EXT2 FAT with a Windows machine connected to Samba?
 I thought that FAT32 was required for that? But maybe I'm confused with
 sharing a partition with a dual boot machine with Win and Linux (which I
 don't have).

 Bas


The remote Windows machine neither knows nor cares what file system the host 
is using.

The server can serve any type of file system to clients using Samba.
The only thing you have to worry about is the permissions. A Samba client can 
only read/write to folders to which they have permission.

For example a Samba client 'fred' cannot write to a Linux folder owned by 
'joe' unless the appropriate permissions are set.

This is true for FAT32 partitions as well as Ext3 (there is little need to use 
Ext2 anymore).  But because a FAT32 partition has no concept of permissions, 
when Linux mounts a FAT32 partition it will apply the permissions defined in 
your /etc/fstab file to the entire partition.

If you want all your Samba clients to be able to read/write to a FAT32 
partition you must set the option umask=0  in the line for that partition in 
the fstab file. This makes the perms 777 and anyone can read/write to the 
partition

derek
-- 
www.jennings.homelinux.net
http://twiki.mdklinuxfaq.org


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Samba server not working

2004-05-26 Thread Derek Jennings
On Wednesday 26 May 2004 13:00, Video 4Linux wrote:
 I'm trying to set up a Samba server on my Linux Mandrake 10 machine. I've
 copied the smb.conf settings from the Samba Howto and look like this:

 [global]
 workgroup = Thuis
 netbios name = Linux
 printcap name = cups
 disable spoolss = Yes
 show add printer wizard = No
 printing = cups
 [homes]
 comment = Home Directories
 valid users = %S
 read only = No
 browseable = No
 [public]
 comment = Data
 path = /share
 force user = bas
 force group = users
 guest ok = Yes
 [printers]
 comment = All Printers
 path = /var/spool/samba
 printer admin = root, bas
 create mask = 0600
 guest ok = Yes
 printable = Yes
 use client driver = Yes
 browseable = No

 I started the smb and nmb services which repsond both with [OK].

 But when I run the command smbclient -L localhost I get:

 session request to LOCALHOST failed (Call returned zero bytes (EOF))
 session request to *SMBSERVER failed (Call returned zero bytes (EOF))

 Note that because I want to share a certain partition with a windows XP
 machine /share is mounted at a FAT32 partition. No idea if that has
 something to do with my problems. I also cannot chown the /share folder
 (operation not permitted). It is now owned by root.

 Help is very welcome.

 Bas

Did you try with the default smb.conf file?
Samba works out of the box in mandrake. The only line you have to change is
workgroup = 

There is a copy of the default file at usr/share/samba

The reason /share is owned by root is because it is FAT32 and has no perm 
bits. It will have the permissions defined in /etc/fstab and will default to 
whoever mounted it (root)  You need to set the uid=value and gid=value 
options in the fstab line. You might also like to set the umask= option as 
well See 'man mount'

Mounting the FAT32 partition at /share may not be a good idea. The msec 
security system expects everything under / to be owned by root and will try 
to alter the perms. Being FAT32 it will not be able to, but all the same a 
better location would be /mnt/share.

derek

-- 
www.jennings.homelinux.net
http://twiki.mdklinuxfaq.org


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



RE: [newbie] Samba server not working

2004-05-26 Thread Misinezis Efstratios ([EMAIL PROTECTED])
Hello..
First time writing
I think that is a matter of resolving the localhost the box you got and not
a matter of permissions.
Have you tried? name of the box , IP of the box e.t.c

Check the checklist form samba documentation. since pretty new in Samba
but I did had the same problem using SWAT...so I assume the problem is how
to resolve your host..


-Original Message-
From: Derek Jennings [mailto:[EMAIL PROTECTED] 
Sent: , 26  2004 4:05 
To: [EMAIL PROTECTED]
Subject: Re: [newbie] Samba server not working

On Wednesday 26 May 2004 13:00, Video 4Linux wrote:
 I'm trying to set up a Samba server on my Linux Mandrake 10 machine. I've
 copied the smb.conf settings from the Samba Howto and look like this:

 [global]
 workgroup = Thuis
 netbios name = Linux
 printcap name = cups
 disable spoolss = Yes
 show add printer wizard = No
 printing = cups
 [homes]
 comment = Home Directories
 valid users = %S
 read only = No
 browseable = No
 [public]
 comment = Data
 path = /share
 force user = bas
 force group = users
 guest ok = Yes
 [printers]
 comment = All Printers
 path = /var/spool/samba
 printer admin = root, bas
 create mask = 0600
 guest ok = Yes
 printable = Yes
 use client driver = Yes
 browseable = No

 I started the smb and nmb services which repsond both with [OK].

 But when I run the command smbclient -L localhost I get:

 session request to LOCALHOST failed (Call returned zero bytes (EOF))
 session request to *SMBSERVER failed (Call returned zero bytes (EOF))

 Note that because I want to share a certain partition with a windows XP
 machine /share is mounted at a FAT32 partition. No idea if that has
 something to do with my problems. I also cannot chown the /share folder
 (operation not permitted). It is now owned by root.

 Help is very welcome.

 Bas

Did you try with the default smb.conf file?
Samba works out of the box in mandrake. The only line you have to change
is
workgroup = 

There is a copy of the default file at usr/share/samba

The reason /share is owned by root is because it is FAT32 and has no perm 
bits. It will have the permissions defined in /etc/fstab and will default to

whoever mounted it (root)  You need to set the uid=value and gid=value 
options in the fstab line. You might also like to set the umask= option as 
well See 'man mount'

Mounting the FAT32 partition at /share may not be a good idea. The msec 
security system expects everything under / to be owned by root and will try 
to alter the perms. Being FAT32 it will not be able to, but all the same a 
better location would be /mnt/share.

derek

-- 
www.jennings.homelinux.net
http://twiki.mdklinuxfaq.org

###

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



RE: [newbie] Samba server not working

2004-05-26 Thread Bill Shirley


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Video 4Linux
 Sent: Wednesday, May 26, 2004 8:01 AM
 To: [EMAIL PROTECTED]
 Subject: [newbie] Samba server not working
 
 
 I'm trying to set up a Samba server on my Linux Mandrake 10 machine. I've
 copied the smb.conf settings from the Samba Howto and look like this:
 
 [global]
 workgroup = Thuis
 netbios name = Linux
 printcap name = cups
 disable spoolss = Yes
 show add printer wizard = No
 printing = cups
 [homes]
 comment = Home Directories
 valid users = %S
 read only = No
 browseable = No
 [public]
 comment = Data
 path = /share
 force user = bas
 force group = users
 guest ok = Yes
 [printers]
 comment = All Printers
 path = /var/spool/samba
 printer admin = root, bas
 create mask = 0600
 guest ok = Yes
 printable = Yes
 use client driver = Yes
 browseable = No
 
 I started the smb and nmb services which repsond both with [OK].
 
 But when I run the command smbclient -L localhost I get:
 
 session request to LOCALHOST failed (Call returned zero bytes (EOF))
 session request to *SMBSERVER failed (Call returned zero bytes (EOF))
 

It's 'smbclient -L netbiosname', so for you it's:
smbclient -L Linux


 Note that because I want to share a certain partition with a windows XP
 machine /share is mounted at a FAT32 partition. No idea if that has

samba can share out any partition.  You don't have to make it a FAT
partition.  All my shares are ext3.  Unless this is a partition that
already has data, I would recomment NOT to use FAT.

 something to do with my problems. I also cannot chown the /share folder
 (operation not permitted). It is now owned by root.
 
 Help is very welcome.
 
 Bas
 
 _
 Protect your PC - get McAfee.com VirusScan Online 
 http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
 
 
 


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



RE: [newbie] Samba server for shares

2004-05-24 Thread Tobias Cloete
Thanx

Will do.

Regards,
Jargon

-Original Message-
From: Derek Jennings [mailto:[EMAIL PROTECTED] 
Sent: 24 May 2004 10:01 AM
To: [EMAIL PROTECTED]
Subject: Re: [newbie] Samba server for shares

On Monday 24 May 2004 06:07, Tobias Cloete wrote:
 Thanx,

 I'll setup die security to high only.
 I don't want anonymous access to the shares.
 Each user must access only their share and nothing more. They will
only
 have read access too. Eg. \share\jargon; \share\someone; etc...

 I did read upon samba a bit more.
 I'm trying to get dit box to use samba-winbind for domain
 authentication.
 Any ideas?

 I do use die net join . command but, when I try to see the usr's
om
 the windows dc, I get an error. I read somewhere on the list someone
 said something about, Keberos and using that to authenticate against a
 windows domain.

 Regards,
 Jargon


I know what you want to do is possible, but it is outside my own
experience.
If you get no further replies here, I suggest you ask in the forum at 
MandrakeClub www.mandrakeclub.com.  One of your fellow countrymen Buchan

Milne posts there and is a real whizz at all things to do with Samba. He

responds to virtually every Samba question on the forum.

derek

-- 
www.jennings.homelinux.net
http://twiki.mdklinuxfaq.org




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



RE: [newbie] Samba server for shares

2004-05-22 Thread Tobias Cloete








Ok. I had a type its port : 139/tcp
for samba  J





-Original Message-
From: Tobias Cloete
[mailto:[EMAIL PROTECTED] 
Sent: 22 May 2004 04:50 PM
To: [EMAIL PROTECTED]
Subject: [newbie] Samba server for
shares



Greetz all.



Ive installed mdk10 with only
a console and networking utils, selected samba as addon.

Security mode is set to Highest.



I want to use this server to store
some documents from different usrs on our domain. Like their cvs,
monthly claims etc

I installed webmin afterwards, to
enable me to administer the box remotely and only opened ports 138 (smb) and
1 (webmin).



I want out domain users to be
able to access \share\usernamehere with their windows domain
account. I dont want to setup a 1000 unix users with 1000 different
passwords, thats not going be easy to administer.



I dont want the box to be on
the domain, but I want to be able to administer the shares with my normal
windows usr account. Well, this is easy by creating a unix usr account for
myself only and giving me full access to be \share and its contents, so that I
can see it through my windowsbox and backup the data to a cdrw.



I want the permissions on the
usernamehere to only allow the users domain account name.



Im confused as to how webmin
works and if this will solve the problem



Any ideas?



Thanx,

Jargon








Re: [newbie] Samba server for shares

2004-05-22 Thread Derek Jennings
On Sat, 22 May 2004 16:49:30 +0200, Tobias Cloete [EMAIL PROTECTED]  
wrote:

Greetz all.
I've installed mdk10 with only a console and networking utils, selected
samba as addon.
Security mode is set to Highest.
I want to use this server to store some documents from different usr's
on our domain. Like their cv's, monthly claims etc...
I installed webmin afterwards, to enable me to administer the box
remotely and only opened ports 138 (smb) and 1 (webmin).
I want out domain user's to be able to access \share\'usernamehere' with
their windows domain account. I don't want to setup a 1000 unix users
with 1000 different passwords, that's not going be easy to administer.
I don't want the box to be on the domain, but I want to be able to
administer the shares with my normal windows usr account. Well, this is
easy by creating a unix usr account for myself only and giving me full
access to be \share and its contents, so that I can see it through my
windowsbox and backup the data to a cdrw.
I want the permissions on the 'usernamehere' to only allow the user's
domain account name.
I'm confused as to how webmin works and if this will solve the problem
Any ideas?
Thanx,
Jargon
A few points :-
With security level set to highest (paranoid), you are going to be quite  
restricted. If you are just getting to know Linux then you might find it  
easier to work with 'High' or 'Higher' Otherwise you will may get quite  
frustrated at how much the security system interferes with you.

One way the security system will interfere is on the ownership and  
permissions on your shared folders. The msec security script will check on  
which user/group owns folders and the read/write/execute permissions on  
them. If the permissions do not conform to the levels appropriate for your  
security level msec will **change the permissions** without consulting  
you. This confuses the socks off a lot of people.  To define the  
permissions you want to use on your shared folders use drakperm in the  
security section of Mandrake Control Centre.

Samba cannot override the permissions on the linux folder, so any Samba  
user can only have the permissions appropriate for the user thay are  
logged in as.
It is not necessary to have a 1:1 mapping between Samba users and Linux  
users, but if the Samba access is not to be anonymous, then the Samba  
users must be mapped to a Linux Group or User.

In your case I suspect anonymous access would be all you need unless you  
want to either set up 1000 Samba users, or else implement an LDAP  
authentication server. If you are using anonymous access then you must map  
your users to the guest user 'nobody' and the shared folders must allow  
access to 'nobody'.

You will find an example configuration for an anonymous share in the  
default /etc/samba/smb.conf   file.

It is not clear if you have webmin working or not.
After installing the webmin package run
chkconfig webmin on
service webmin start
That will make the webmin server run automatically when you boot the  
server. Then

https://server_ip_addy:1
from any browser on the local network will access webmin  (Note https not  
http)
The Samba module in webmin is simply a graphical way of editing the  
/etc/samba/smb.conf file

HTH
derek
--
www.jennings.homelinux.net

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Samba server for shares

2004-05-22 Thread Stephen Kuhn
On Sun, 2004-05-23 at 00:49, Tobias Cloete wrote:
 --  
 
 Greetz all.
 
  
 
 Ive installed mdk10 with only a console and networking utils,
 selected samba as addon.
 
 Security mode is set to Highest.
 
  
 
 I want to use this server to store some documents from different usrs
 on our domain. Like their cvs, monthly claims etc
 
 I installed webmin afterwards, to enable me to administer the box
 remotely and only opened ports 138 (smb) and 1 (webmin).
 
  
 
 I want out domain users to be able to access \share\usernamehere
 with their windows domain account. I dont want to setup a 1000 unix
 users with 1000 different passwords, thats not going be easy to
 administer.
 
  
 
 I dont want the box to be on the domain, but I want to be able to
 administer the shares with my normal windows usr account. Well, this
 is easy by creating a unix usr account for myself only and giving me
 full access to be \share and its contents, so that I can see it
 through my windowsbox and backup the data to a cdrw.
 
  
 
 I want the permissions on the usernamehere to only allow the users
 domain account name.
 
  
 
 Im confused as to how webmin works and if this will solve the problem
 
  
 
 Any ideas?
 
  
 
 Thanx,
 
 Jargon

You're going to have to set the box up for domain logins; it's highly
suggested you install SWAT if you haven't already; this is a very useful
tool for not only configuring your Samba box via Webmin, but also comes
with heaps of Help Files concerning Samba and it's configuration as
well as offering some of the more advanced configuration options.

stephen kuhn - owner
==
illawarra computer services
a kuhn media australia company
http://kma.0catch.com
--
  * This message was composed on a 100% Microsoft free computer *
  We expressly refuse to utilise Microsoft DRM encoded documents
--
What George Washington did for us was to throw out the British, so that
we wouldn't have a fat, insensitive government running our country. Nice
try anyway, George. -- D.J. on KSFO/KYA



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



RE: [newbie] Samba server for shares

2004-05-22 Thread Stephen Kuhn
On Sun, 2004-05-23 at 01:02, Tobias Cloete wrote:
 --  
 
 Ok. I had a type its port : 139/tcp for samba  J

...port 137, 138 and 139 should be opened.

stephen kuhn - owner
==
illawarra computer services
a kuhn media australia company
http://kma.0catch.com
--
  * This message was composed on a 100% Microsoft free computer *
  We expressly refuse to utilise Microsoft DRM encoded documents
--
'What shall we do?' said Twoflower. 'Panic?' said Rincewind hopefully.
(The Light Fantastic)



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Samba server.

1999-11-11 Thread yacketta



From: Ronald A. Yacketta

I seen that question asked and answered in the faq for sama (www.samba.org)
I dont recall the answer, but I know it has been asked and answered...

Regards,
Ron




jeff [EMAIL PROTECTED] on 11/11/99 01:39:08 PM

Please respond to [EMAIL PROTECTED]

To:   "[EMAIL PROTECTED]" [EMAIL PROTECTED]
cc:(bcc: Ronald A. Yacketta/958157/EKC)
Subject:  [newbie] Samba server.




Well I got the sever up and all the p.c. connected. They all goto there
own directory. What I need to know is how to let each account log into
the same directory. So they can share common files.

Thanks

Jeff