Re: FC3 - trying to join a Windows Workgroup
From: Ivan Marsh (annoyed_at_you.now)
Date: 05/17/05
- Previous message: Joerg Reinhardt: "IP over ieee1394"
- In reply to:(deleted message) Leythos: "Re: FC3 - trying to join a Windows Workgroup"
- Next in thread: Leythos: "Re: FC3 - trying to join a Windows Workgroup"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 17 May 2005 11:11:17 -0500
On Tue, 17 May 2005 03:10:49 +0000, Leythos wrote:
> In article <pan.2005.05.16.18.07.54.54199@you.now>, annoyed@you.now
> says...
>>
>> Assuming all this has been done you shouldn't be able to tell the
>> difference between your SAMBA server and any Windows box on your network
>> (except maybe the SAMBA server doesn't fail quite as much... sorry, had to.)
>>
>> Beyond this you're out of the normal *gotcha* stuff for SAMBA and some
>> detail troubleshooting will have to be done.
>>
>> Once you have this working I'll be happy to work out the: "well, now I can
>> see the share but it always says access denied" question.
>
> Thanks for all the info. I have Windows 2003 servers that I'm trying to
> access using my FC3 box, so it's not really a work group, but I
> understand the idea.
Workgroup/Domain... it's the same thing to anything that can't register
itself in active directory.
> I can use the netbios name instead of the DNS name, the FC3 box can ping
> the server by name without any problem, I can get a full list of shares
> and folders and even files, but when I double click on a document it
> gives me a permission error.
Okay... at this point you need to start thinking about SAMBA the same way
you think about making shares under Windows.
I'm assuming you've created the account mapping necessary with smbpasswd.
If that mapping isn't there nothing is going to work right.
Share permissions != filesystem permissions.
If, under Windows, you create a share "test" that shares c:\tempdir and
give the TESTSHARE group rights to the share, you still can't do anything
with that share, even if you're a member of the TESTSHARE group, unless
the TESTSHARE group has filesystem rights to c:\tempdir.
The same is true of SAMBA.
Creating a share under SAMBA:
[myfiles]
comment = test share
browseable = yes
path = /var/myfiles
valid users = @users
public = no
writeable = yes
printable = no
create mask = 0660
directory mask = 0770
You can control read/write permissions to the share with the share...
But you cannot give someone rights to the filesystem with the share.
In this example if the group "users" doesn't have filesystem access to the
/var/myfiles directory members of the "users" group still have no rights
to the share.
So, if /var/myfiles has permissions/ownership "drwxrwx--- root:root" you
won't be able to get to the share even if you're a member of "users".
I set up my SAMBA shares so they have the permissions/ownership they need
and so they will maintain that p/o in all the subdirectories when new
files/dirs are created.
The /var/myfiles directory would then need to be "drwxrws--- root:users".
If you're not familiar with the "s" in the directory permissions that's
the SGID flag. Set it with chmod g+s <directory>. That flag means all
directories created under that directory will keep the group ownership of
the parent directory.
With those permissions set and the create/directory mask entries in the
shares all new files and dirs written to the share will maintain the
correct p/o and file rights.
Dropping a file into that share from Windows will create the file with the
p/o "rw-rw---- <your user name>:users" and a new directory will be
created as "drwxrws--- <your user name>:users" which is what you want.
If the rights aren't set up to maintain proper p/o and file rights you
will end up in a position where you can write a file to a share but then
you and/or others in your group have no rights to the file because the
file would end up marked with permissions from your default UMASK and will
belong to <your user name>:<your personal group>. Which means you will
still be able to get to the file but no one else from the "users" group
will be able to.
This may seem confusing at first but it's exactly the same way Windows
works... it just seems like it isn't.
-- Life is short, but wide. -KV
- Previous message: Joerg Reinhardt: "IP over ieee1394"
- In reply to:(deleted message) Leythos: "Re: FC3 - trying to join a Windows Workgroup"
- Next in thread: Leythos: "Re: FC3 - trying to join a Windows Workgroup"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|