Networking Forums

Networking Forums > Computer Networking > Linux Networking > Permissions on a windows drive through SAMBA

Reply
Thread Tools Display Modes

Permissions on a windows drive through SAMBA

 
 
N.K.
Guest
Posts: n/a

 
      08-27-2003, 01:02 AM
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.
 
Reply With Quote
 
 
 
 
Perry Whelan
Guest
Posts: n/a

 
      08-27-2003, 08:03 PM
> 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...


 
Reply With Quote
 
Rob Pearce
Guest
Posts: n/a

 
      08-29-2003, 09:40 PM
On Wednesday 27 August 2003 2:02 am N.K. wrote:

> 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?


 
Reply With Quote
 
calle
Guest
Posts: n/a

 
      09-04-2003, 11:08 AM
Rob Pearce wrote:
> On Wednesday 27 August 2003 2:02 am N.K. wrote:
>
>
>>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

 
Reply With Quote
 
calle
Guest
Posts: n/a

 
      09-04-2003, 11:18 AM
Rob Pearce wrote:
> On Wednesday 27 August 2003 2:02 am N.K. wrote:
>
>
>>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

 
Reply With Quote
 
calle
Guest
Posts: n/a

 
      09-04-2003, 12:27 PM
Rob Pearce wrote:
> On Wednesday 27 August 2003 2:02 am N.K. wrote:
>
>
>>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

 
Reply With Quote
 
calle
Guest
Posts: n/a

 
      09-04-2003, 12:57 PM
N.K. wrote:
> 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.
>
>
> "Perry Whelan" <(E-Mail Removed)> wrote in message news:<7883b.3403$(E-Mail Removed)>...
>
>>>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

 
Reply With Quote
 
calle
Guest
Posts: n/a

 
      09-04-2003, 01:03 PM
N.K. wrote:
> 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.
>
>
> "Perry Whelan" <(E-Mail Removed)> wrote in message news:<7883b.3403$(E-Mail Removed)>...
>
>>>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


 
Reply With Quote
 
Robert Pearce
Guest
Posts: n/a

 
      09-05-2003, 06:28 PM
In article <(E-Mail Removed)>, calle <(E-Mail Removed)>
writes
>
>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!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running an Executable from a Mapped Drive - No Permissions gthomps07876 Windows Networking 6 07-01-2007 01:02 AM
Assigning Permissions for Mapping a Drive bvanderpool Windows Networking 1 10-10-2006 05:31 PM
Samba shares keep reverting permissions and ownership Mark Adams Linux Networking 0 05-09-2006 10:24 PM
Insufficient Permissions to Spool directory with Samba printer Ringo Langly Linux Networking 5 11-12-2004 06:37 PM
samba permissions on networked application Ken Linux Networking 2 02-02-2004 10:03 AM



1 2 3 4 5 6 7 8 9 10 11