Permissions on a windows drive through SAMBA

Permissions on a windows drive through SAMBA

Post by N.K » Thu, 28 Aug 2003 10:02:40



Hi,

My Samba behaves a little weird.
First of all when I see a listing of all the windows machines from my
Linux box which is a Samba server, somehow I see my windows box twice.
 Why is that and does it matter?  How can I fix that?
Next, when I try to access a shared drive on my windows box (I'm able
to login to it)  I get a message that I don't have permissions
necessary to access that drive.  I've checked all the permissions on
windows box and they are fine.  When I try to use smbclient command it
lets me in without a problem and I can browse my windows drive.  What
is the difference here? Is there another place where I can set up
permissions?
Thanks for all your help.

 
 
 

Permissions on a windows drive through SAMBA

Post by Perry Whela » Fri, 29 Aug 2003 05:03:15


Quote:> Hi,

> My Samba behaves a little weird.
> First of all when I see a listing of all the windows machines from my
> Linux box which is a Samba server, somehow I see my windows box twice.
>  Why is that and does it matter?  How can I fix that?
> Next, when I try to access a shared drive on my windows box (I'm able
> to login to it)  I get a message that I don't have permissions
> necessary to access that drive.  I've checked all the permissions on
> windows box and they are fine.  When I try to use smbclient command it
> lets me in without a problem and I can browse my windows drive.  What
> is the difference here? Is there another place where I can set up
> permissions?
> Thanks for all your help.

Snip your smb.conf file and post it up here, we don't need to see the
[GLOBAL] section, just everything else - you've got your samba shares setup
wrong.  And also, yes, you can set create masks on your samba shared
dir's...

 
 
 

Permissions on a windows drive through SAMBA

Post by N.K » Sat, 30 Aug 2003 03:03:14


Here is part of my smb.conf:

#============================ Share Definitions ==============================
[homes]
   comment = Home Directories
   browseable = no
   writable = yes
   valid users = %S
   create mode = 0664
   directory mode = 0775
# If you want users samba doesn't recognize to be mapped to a guest user
; map to guest = bad user

[myshare]
path = /abc/efg
public = no
valid users = smith
writable = yes
printable = no
create mask = 0765

These are uncommented sections.
Please, let me know if this tells you anything.
Thanks in advance.
N.K.


> > Hi,

> > My Samba behaves a little weird.
> > First of all when I see a listing of all the windows machines from my
> > Linux box which is a Samba server, somehow I see my windows box twice.
> >  Why is that and does it matter?  How can I fix that?
> > Next, when I try to access a shared drive on my windows box (I'm able
> > to login to it)  I get a message that I don't have permissions
> > necessary to access that drive.  I've checked all the permissions on
> > windows box and they are fine.  When I try to use smbclient command it
> > lets me in without a problem and I can browse my windows drive.  What
> > is the difference here? Is there another place where I can set up
> > permissions?
> > Thanks for all your help.

> Snip your smb.conf file and post it up here, we don't need to see the
> [GLOBAL] section, just everything else - you've got your samba shares setup
> wrong.  And also, yes, you can set create masks on your samba shared
> dir's...

 
 
 

Permissions on a windows drive through SAMBA

Post by Rob Pearc » Sun, 31 Aug 2003 06:40:06



Quote:> Hi,

> My Samba behaves a little weird.
> Next, when I try to access a shared drive on my windows box (I'm able
> to login to it)  I get a message that I don't have permissions
> necessary to access that drive.

I'm not entirely clear what you're saying here. Is the share on the Windows
box and you're trying to mount it on the Linux box?

Quote:> I've checked all the permissions on
> windows box and they are fine.  When I try to use smbclient command it
> lets me in without a problem and I can browse my windows drive.  What
> is the difference here? Is there another place where I can set up
> permissions?

Ah, your reference to smbclient suggests that you are indeed trying to
mount a windows drive on Linux. In that case, smbd has nothing to do with
it and the smb.conf file is irrelevant. What we need to see is your mount
command. Specifically, which options are you passing?
 
 
 

Permissions on a windows drive through SAMBA

Post by call » Fri, 05 Sep 2003 20:08:53




>>Hi,

>>My Samba behaves a little weird.

>>Next, when I try to access a shared drive on my windows box (I'm able
>>to login to it)  I get a message that I don't have permissions
>>necessary to access that drive.

> I'm not entirely clear what you're saying here. Is the share on the Windows
> box and you're trying to mount it on the Linux box?

>>I've checked all the permissions on
>>windows box and they are fine.  When I try to use smbclient command it
>>lets me in without a problem and I can browse my windows drive.  What
>>is the difference here? Is there another place where I can set up
>>permissions?

> Ah, your reference to smbclient suggests that you are indeed trying to
> mount a windows drive on Linux. In that case, smbd has nothing to do with
> it and the smb.conf file is irrelevant. What we need to see is your mount
> command. Specifically, which options are you passing?

I have a similar problem which is that after I mounted the share on the
windows machine I can read and copy files but not create or change
anything. I use :
#mount -t smbfs <share name> <local directory> -o
username=<user>,workgroup=<windows domain name>

It mounts fine but, as I said, no write/change rigths.

/calle

 
 
 

Permissions on a windows drive through SAMBA

Post by call » Fri, 05 Sep 2003 20:18:13




>>Hi,

>>My Samba behaves a little weird.

>>Next, when I try to access a shared drive on my windows box (I'm able
>>to login to it)  I get a message that I don't have permissions
>>necessary to access that drive.

> I'm not entirely clear what you're saying here. Is the share on the Windows
> box and you're trying to mount it on the Linux box?

>>I've checked all the permissions on
>>windows box and they are fine.  When I try to use smbclient command it
>>lets me in without a problem and I can browse my windows drive.  What
>>is the difference here? Is there another place where I can set up
>>permissions?

> Ah, your reference to smbclient suggests that you are indeed trying to
> mount a windows drive on Linux. In that case, smbd has nothing to do with
> it and the smb.conf file is irrelevant. What we need to see is your mount
> command. Specifically, which options are you passing?

I have a similar problem which is that after I mounted the share on the
windows machine I can read and copy files but not create or change
anything. I use :
#mount -t smbfs <share name> <local directory> -o
username=<user>,workgroup=<windows domain name>

It mounts fine but, as I said, no write/change rigths.

/calle

 
 
 

Permissions on a windows drive through SAMBA

Post by call » Fri, 05 Sep 2003 21:27:00




>>Hi,

>>My Samba behaves a little weird.

>>Next, when I try to access a shared drive on my windows box (I'm able
>>to login to it)  I get a message that I don't have permissions
>>necessary to access that drive.

> I'm not entirely clear what you're saying here. Is the share on the Windows
> box and you're trying to mount it on the Linux box?

>>I've checked all the permissions on
>>windows box and they are fine.  When I try to use smbclient command it
>>lets me in without a problem and I can browse my windows drive.  What
>>is the difference here? Is there another place where I can set up
>>permissions?

> Ah, your reference to smbclient suggests that you are indeed trying to
> mount a windows drive on Linux. In that case, smbd has nothing to do with
> it and the smb.conf file is irrelevant. What we need to see is your mount
> command. Specifically, which options are you passing?

I have a similar problem which is that after I mounted the share on the
windows machine I can read and copy files but not create or change
anything. I use :
#mount -t smbfs <share name> <local directory> -o
username=<user>,workgroup=<windows domain name>

It mounts fine but, as I said, no write/change rigths.

/calle

 
 
 

Permissions on a windows drive through SAMBA

Post by call » Fri, 05 Sep 2003 21:57:37



> Here is part of my smb.conf:

> #============================ Share Definitions ==============================
> [homes]
>    comment = Home Directories
>    browseable = no
>    writable = yes
>    valid users = %S
>    create mode = 0664
>    directory mode = 0775
> # If you want users samba doesn't recognize to be mapped to a guest user
> ; map to guest = bad user

> [myshare]
> path = /abc/efg
> public = no
> valid users = smith
> writable = yes
> printable = no
> create mask = 0765

> These are uncommented sections.
> Please, let me know if this tells you anything.
> Thanks in advance.
> N.K.


>>>Hi,

>>>My Samba behaves a little weird.
>>>First of all when I see a listing of all the windows machines from my
>>>Linux box which is a Samba server, somehow I see my windows box twice.
>>> Why is that and does it matter?  How can I fix that?
>>>Next, when I try to access a shared drive on my windows box (I'm able
>>>to login to it)  I get a message that I don't have permissions
>>>necessary to access that drive.  I've checked all the permissions on
>>>windows box and they are fine.  When I try to use smbclient command it
>>>lets me in without a problem and I can browse my windows drive.  What
>>>is the difference here? Is there another place where I can set up
>>>permissions?
>>>Thanks for all your help.

>>Snip your smb.conf file and post it up here, we don't need to see the
>>[GLOBAL] section, just everything else - you've got your samba shares setup
>>wrong.  And also, yes, you can set create masks on your samba shared
>>dir's...

I have a similar problem which is that after I mounted the share on the
windows machine I can read and copy files but not create or change
anything. I use :
#mount -t smbfs <share name> <local directory> -o
username=<user>,workgroup=<windows domain name>

It mounts fine but, as I said, no write/change rigths.

/calle

 
 
 

Permissions on a windows drive through SAMBA

Post by call » Fri, 05 Sep 2003 22:03:33



> Here is part of my smb.conf:

> #============================ Share Definitions ==============================
> [homes]
>    comment = Home Directories
>    browseable = no
>    writable = yes
>    valid users = %S
>    create mode = 0664
>    directory mode = 0775
> # If you want users samba doesn't recognize to be mapped to a guest user
> ; map to guest = bad user

> [myshare]
> path = /abc/efg
> public = no
> valid users = smith
> writable = yes
> printable = no
> create mask = 0765

> These are uncommented sections.
> Please, let me know if this tells you anything.
> Thanks in advance.
> N.K.


>>>Hi,

>>>My Samba behaves a little weird.
>>>First of all when I see a listing of all the windows machines from my
>>>Linux box which is a Samba server, somehow I see my windows box twice.
>>> Why is that and does it matter?  How can I fix that?
>>>Next, when I try to access a shared drive on my windows box (I'm able
>>>to login to it)  I get a message that I don't have permissions
>>>necessary to access that drive.  I've checked all the permissions on
>>>windows box and they are fine.  When I try to use smbclient command it
>>>lets me in without a problem and I can browse my windows drive.  What
>>>is the difference here? Is there another place where I can set up
>>>permissions?
>>>Thanks for all your help.

>>Snip your smb.conf file and post it up here, we don't need to see the
>>[GLOBAL] section, just everything else - you've got your samba shares setup
>>wrong.  And also, yes, you can set create masks on your samba shared
>>dir's...

 >

I have a similar problem which is that after I mounted the share on the
windows machine I can read and copy files but not create or change
anything. I use :
#mount -t smbfs <share name> <local directory> -o
username=<user>,workgroup=<windows domain name>

It mounts fine but, as I said, no write/change rigths.

/calle

 
 
 

Permissions on a windows drive through SAMBA

Post by Robert Pearc » Sun, 07 Sep 2003 03:28:38



writes

Quote:

>I have a similar problem which is that after I mounted the share on the
>windows machine I can read and copy files but not create or change
>anything. I use :
>#mount -t smbfs <share name> <local directory> -o
>username=<user>,workgroup=<windows domain name>

>It mounts fine but, as I said, no write/change rigths.

Yes, that would be precisely the expected behaviour. At least I expect
it now that I've experienced being caught out by it!

That mount command hands off to smbmount, which _defaults_ to mounting
read-only (unlike any of the other mount types). You need to pass the
"rw" option as well.

After that you'll probably find (as I did) that root can happily write
to the share, but nobody else can. This is because smbmount defaults to
treating all files on the share as owned by root.root and permissions
644 (or 755). You need either to pass the uid= option or the umask=
options.

Read the smbmount man page - I've removed all my smbmount shares so I
don't have a handy example to post.
--
Rob Pearce

The "from" must be wrong, nothing that helpful ever comes from the TAN team!

 
 
 

1. Samba: Windows NT and network permissions...

I have Samba 2.0.5a running as a PDC (Primary Domain Controller) for a
Windows 95, Windows 98, and a Windows NT Workstation 4 machine.

On the Windows NT box, when I log on to the domain (controlled by the Samba
PDC), I can connect to the *server* without a problem.  I can also, in
Network Neighborhood, see the Windows 9x machines.  However, when I make an
attempt to connect to one of the Windows 9x machines (ie. I double-click one
of them), Windows NT gives me a message box saying:

\\Hydra is not accessible.
Access is denied.

(Hydra is the name of the Windows 95 box, by the way.)

This only happens on the Windows NT machine when I'm logged on to the domain
with my domain account.  It is possible for me to browse the Windows 9x
machines if I log into the Windows NT machine as Administrator, but that is
pretty much unacceptable.

How can I continue to be logged on to the Samba controlled domain and still
be able to browse the other clients that are also logged on?

Any assistance is greatly appreciated!

2. History

3. OSS lpd for windows or( how to filter print jobs thru windows drivers)

4. Patch Level 14a ARGH!

5. permissions windows 95 drives

6. internet

7. Setting Write Permissions to my Windows Drive

8. compile error code 1 kdelibs 1.1 solaris 7

9. sharing windows drive with samba?

10. Problems automatically mapping Samba drives on Windows machines

11. Mounting windows drives over Samba?

12. A few questions regarding samba from a samba and windows rookie

13. Samba Performance - Not a samba question about Windows Pwd Encrypt!