This is a discussion on Permissions on a windows drive through SAMBA within the Linux Networking forums, part of the Linux Forums category; Hi, My Samba behaves a little weird. First of all when I see a listing of all the windows machines ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
> 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... |
|
|||
|
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? |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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" <meba@wi.rr.com> wrote in message news:<7883b.3403$cQ1.810664@kent.svc.tds.net>... > >>>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 |
|
|||
|
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" <meba@wi.rr.com> wrote in message news:<7883b.3403$cQ1.810664@kent.svc.tds.net>... > >>>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 |
|
|||
|
In article <3F572F91.5040703@knapet.com>, calle <calleh@knapet.com>
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! |