Re: [newbie] problem - file/directory permissions using samba AND nfs SOLVED

2003-01-29 Thread Steve Jeppesen
Please, anybody reply if they know of problems that could arise out of
this "fixed" premission problems.

What I ended up doing, is to set create mask and directory mode to 0777
(even with public = yes) for the samba side and for NFS, I (big gulp
here) ran the command umask 000 from my p.c. - what that does is
basically anything I create from or on my mandrake box is to set the
mask at 0777.

Anybody have any advise against doing something like that?  If nobody 
can state a good reason not to do this, I will have to set this up in my
.profile from what I have read on the web.  I have not even begun to
look for that .profile file at the moment however.

Any advise (bad or good) is very welcome!

Thanks
Steve

-- 
Linux user #280097
Machine #162480

http://counter.li.org


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



Re: [newbie] problem - file/directory permissions using samba AND nfs

2003-01-29 Thread Steve Jeppesen
On Wed, 29 Jan 2003 12:04:36 +
Anne Wilson <[EMAIL PROTECTED]> wrote:

Yes, that thought came to mind recently about not using smbusers as a
name for a group but then again alot of things have passed thru my mind
and am sort of feeling overwelmed about all this!

When I create smbusers group on the server, I checked first to see what
the gid was (507 in that case), so when I created smbusers on my p.c., I
changed the gid to match.  

Odd thing is (I fibbed on my last post - but included it because I knew
something like that had to be done) when I set hosts allow = @smbusers
in smb.conf and restart smb services, the server no longer appears in
the win clients network neighborhood.  If I reset hosts allow to =
192.168.1.0/255.255.255.0 it reappears in network neighborhood...must be
missing something else in smb.conf?

The groups thing must be working to some degree though, if anybody
creates a file/folder on the server thru nfs or samba, it shows up with
them being the owner and belonging to the smbusers group.  But
permissions are rx - NOT rwx.  I am guessing it has to do with mask or
umask settings, just not to sure how to fix that yet.  Thanks for trying
though Anne.

Any thoughts?

Thanks
Steve

> > I have tried doing this, but not too sure if I did everything
> > correctly.
> >
> > On the server;
> > groupadd smbusers
> > vi /etc/group  (and add all users behind smbusers row)
> > vi /etc/samba/smb.conf  (and change hosts allow to = @smbusers)
> >
> > On my p.c. (not sure if I needed to but a coworker suggested it)
> > groupadd smbusers
> > vi /etc/group  (and add only myself as a user within smbusers group)
> > groupmod -g 507 smbusers   (to match gid of servers smbusers group)
> > usermod -g smbusers steve (steve being my user name)
> > and just incase;
> > usermod -G smbusers steve
> >
> > Are those the actual steps I need to do or am I missing something?
> >
> > I do not believe I need to make any changes to either my p.c. or the
> > servers NFS settings in order to incorporate the smbusers group.
> >
> > After doing all of this - including Stephens suggestion - permission
> > problems still exsist.
> >
> > Steve
> 
> I'm a bit out of my depth here, so I'll leave it to someone else to
> check out your entries.  One thing does occur to me though - I thought
> smbusers was what you might call a 'reserved' group, rather than just
> a user group, which was what I had in mind.  I wouldn't have used that
> name in the groups.  I don't do it c/l way, but I would have added
> user group netusers or something like that, and added the names.
> 
> Looking at /etc/group, I see a typical entry of
> 
> usb:x:43:anne,Andy,Micky,Nigel,Gillian,david
> 
> I presume that the 43 is the number assigned to the group on creation.
>  I 
> presume you determined that before adding the line?  (Don't be
> offended - I'm thrashing about).
> 
> Otherwise, I can't think of anything else right now.
> 
> Anne
> -- 
> Registered Linux User No.293302
> 
> 
> 


-- 
Linux user #280097
Machine #162480

http://counter.li.org


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



Re: [newbie] problem - file/directory permissions using samba AND nfs

2003-01-29 Thread Anne Wilson
On Wednesday 29 Jan 2003 3:42 am, Steve Jeppesen wrote:
> On Tue, 28 Jan 2003 08:56:26 +
>
> Anne Wilson <[EMAIL PROTECTED]> wrote:
> > I don't know anything about nfs really, but I just wondered if this
> > suggestion would help.  Why not make a group for those users and make
> > your default group to be that one? I would have thought that all of
> > them would be able to use the files then, whether locally or remote.
> >
> > Anne
>
> I have tried doing this, but not too sure if I did everything correctly.
>
> On the server;
> groupadd smbusers
> vi /etc/group  (and add all users behind smbusers row)
> vi /etc/samba/smb.conf  (and change hosts allow to = @smbusers)
>
> On my p.c. (not sure if I needed to but a coworker suggested it)
> groupadd smbusers
> vi /etc/group  (and add only myself as a user within smbusers group)
> groupmod -g 507 smbusers   (to match gid of servers smbusers group)
> usermod -g smbusers steve (steve being my user name)
> and just incase;
> usermod -G smbusers steve
>
> Are those the actual steps I need to do or am I missing something?
>
> I do not believe I need to make any changes to either my p.c. or the
> servers NFS settings in order to incorporate the smbusers group.
>
> After doing all of this - including Stephens suggestion - permission
> problems still exsist.
>
> Steve

I'm a bit out of my depth here, so I'll leave it to someone else to check out 
your entries.  One thing does occur to me though - I thought smbusers was 
what you might call a 'reserved' group, rather than just a user group, which 
was what I had in mind.  I wouldn't have used that name in the groups.  I 
don't do it c/l way, but I would have added user group netusers or something 
like that, and added the names.

Looking at /etc/group, I see a typical entry of

usb:x:43:anne,Andy,Micky,Nigel,Gillian,david

I presume that the 43 is the number assigned to the group on creation.  I 
presume you determined that before adding the line?  (Don't be offended - I'm 
thrashing about).

Otherwise, I can't think of anything else right now.

Anne
-- 
Registered Linux User No.293302



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



Re: [newbie] problem - file/directory permissions using samba AND nfs

2003-01-28 Thread Steve Jeppesen
On Tue, 28 Jan 2003 08:56:26 +
Anne Wilson <[EMAIL PROTECTED]> wrote:

> I don't know anything about nfs really, but I just wondered if this
> suggestion would help.  Why not make a group for those users and make
> your default group to be that one? I would have thought that all of
> them would be able to use the files then, whether locally or remote.
> 
> Anne

I have tried doing this, but not too sure if I did everything correctly.

On the server;
groupadd smbusers
vi /etc/group  (and add all users behind smbusers row)
vi /etc/samba/smb.conf  (and change hosts allow to = @smbusers)

On my p.c. (not sure if I needed to but a coworker suggested it)
groupadd smbusers
vi /etc/group  (and add only myself as a user within smbusers group)
groupmod -g 507 smbusers   (to match gid of servers smbusers group)
usermod -g smbusers steve (steve being my user name)
and just incase;
usermod -G smbusers steve

Are those the actual steps I need to do or am I missing something?

I do not believe I need to make any changes to either my p.c. or the
servers NFS settings in order to incorporate the smbusers group. 

After doing all of this - including Stephens suggestion - permission
problems still exsist.

Steve

-- 
Linux user #280097
Machine #162480

http://counter.li.org


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



Re: [newbie] problem - file/directory permissions using samba AND nfs

2003-01-28 Thread Anne Wilson
On Monday 27 Jan 2003 11:33 pm, Steve Jeppesen wrote:
> I think the problem is since I am not using samba for my linux p.c. to
> connect to the linux server, NFS is keeping my permissions on anything I
> create into the shared directory - thus no one using samba can add
> anything or change what I create within the same shared folder.
>
> Is there any way to make NFS change anything I create on the linux
> server to a "public" share so to speak?  Other than the fact that after
> I create a file or folder in the shared folder - I can go back into and
> chmod 0777 ...but that would be a hassle to do everytime.
>
> Thanks for the help Stephen, I should have seen that one myself but ya
> know sometimes ppl need to just take a break from something that is not
> going right and come back to it later with a fresh mind set.

I don't know anything about nfs really, but I just wondered if this suggestion 
would help.  Why not make a group for those users and make your default group 
to be that one? I would have thought that all of them would be able to use 
the files then, whether locally or remote.

Anne
-- 
Registered Linux User No.293302



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



Re: [newbie] problem - file/directory permissions using samba AND nfs

2003-01-27 Thread Steve Jeppesen
On 27 Jan 2003 16:25:43 +1100
Stephen Kuhn <[EMAIL PROTECTED]> wrote:

> If you want a truly open/public share, you can do like this:
> 
> [ddrive]
>   comment = D Drive
>   path = /mnt/d-drive
>   read only = No
>   public = Yes

I changed that share to this;
[shared]
writable = Yes
path = /mnt/shared/shared
read only = No
public = Yes
 
> ...that's it...but you do have to set the security level to SHARE
> instead of USER.

And the security level has always been set to SHARE.

I think the problem is since I am not using samba for my linux p.c. to
connect to the linux server, NFS is keeping my permissions on anything I
create into the shared directory - thus no one using samba can add
anything or change what I create within the same shared folder.

Is there any way to make NFS change anything I create on the linux
server to a "public" share so to speak?  Other than the fact that after
I create a file or folder in the shared folder - I can go back into and
chmod 0777 ...but that would be a hassle to do everytime.

Thanks for the help Stephen, I should have seen that one myself but ya
know sometimes ppl need to just take a break from something that is not
going right and come back to it later with a fresh mind set.

-- 
Linux user #280097
Machine #162480

http://counter.li.org


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



[newbie] problem - file/directory permissions using samba AND nfs

2003-01-26 Thread Steve Jeppesen
I have just searched thru about a year and a half worth of posts
concerning this subject, but have not found a simple way of fixing this.

We have a "trusted" home network, 3 Win98 clients, 1 WinME client, 1 MD
9.0 client and a MD 9.0 server/router/firewall setup.  You can guess
whom the MD 9.0 client belongs to!

I have setup samba for the win clients, portion of smb.conf for shared:
[shared]
writable = Yes
path = /mnt/shared/shared
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777

I admit I might have gone overboard by forcing everything to 0777 but
didn't realize until tonight that nfs is in the picture and is causing
problems - but hay, it works for the win clients anyways  LOL

Here is the line in /etc/exports for the shared directory;
/mnt/shared/shared 192.168.1.15(rw)

All win clients can create files/folders with no problems and other win
clients can create and or modify anything into what another win client
creates.

Problem is that if I create anything to the "shared" directory using
NFS, my permissions are assigned to it, and nobody else can make changes
to it.

I prefer NFS for my linux station over samba, so would like to keep
things the way they are and not switch to samba for linux to linux file
sharing.

Is there a way for the NFS exports to have say 0777 assigned to all
things created in those shares? 

I have tried adding all_squash to the /etc/exports file on the server,
but that didn't help.  A win client was not able to create another
file/folder within a newly created folder by my mandrake box.

The goal here is to basically make the "shared" resource read/writable
by all clients, no matter whom might create any shared folders or files.

Another thought is I might be able to change the line in exports to;
/mnt/shared/shared 192.168.1.(rw)  {but can that be done anyways in
that format?) but am not too sure if that would work because the other
win clients do not use NFS.

Any ideas?

TIA
Steve

-- 
Linux user #280097
Machine #162480

http://counter.li.org


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