From: Andrea Ganduglia on
I cannot figured out what happening. I have a smbfs mount through I
share a network disk. On this, I can create files or directories, but
I cannot write any file. In other words:

WORKS
root(a)svista:~# mkdir -v /mnt/usb-modem/foo
mkdir: created directory `/mnt/usb-modem/foo'

WORKS
root(a)svista:~# touch /mnt/usb-modem/bar
root(a)svista:~# ll /mnt/usb-modem/
total 0
-rwxrwxrwx 1 alibi alibi 0 2010-06-03 15:36 bar
drwxrwxrwx 2 alibi alibi 0 2009-06-15 18:30 foo

DOESN'T WORK
root(a)svista:~# date > /mnt/usb-modem/readme.txt
-su: /mnt/usb-modem/readme.txt: Permission denied

Can you help me?


--
Openclose.it - Idee per il software libero
http://www.openclose.it


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/AANLkTimfwMBIhGQn_eCdbkLYbW1S31f1tHZDFkdJ0KX-(a)mail.gmail.com
From: Rob Owens on
On Thu, Jun 03, 2010 at 03:43:03PM +0200, Andrea Ganduglia wrote:
> I cannot figured out what happening. I have a smbfs mount through I
> share a network disk. On this, I can create files or directories, but
> I cannot write any file. In other words:
>
> WORKS
> root(a)svista:~# mkdir -v /mnt/usb-modem/foo
> mkdir: created directory `/mnt/usb-modem/foo'
>
> WORKS
> root(a)svista:~# touch /mnt/usb-modem/bar
> root(a)svista:~# ll /mnt/usb-modem/
> total 0
> -rwxrwxrwx 1 alibi alibi 0 2010-06-03 15:36 bar
> drwxrwxrwx 2 alibi alibi 0 2009-06-15 18:30 foo
>
> DOESN'T WORK
> root(a)svista:~# date > /mnt/usb-modem/readme.txt
> -su: /mnt/usb-modem/readme.txt: Permission denied
>
> Can you help me?
>
You could try experimenting with the different mask parameters in
smb.conf.

man smb.conf and search for "mask". I would think that the defaults
should be fine, but maybe not. I haven't used samba in while.

Or is this a share on a Windows machine that you're accessing through
your Debian box?

-Rob


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/20100604002944.GB10891(a)aurora.owens.net
From: Andrea Ganduglia on
On Fri, Jun 4, 2010 at 2:29 AM, Rob Owens <rowens(a)ptd.net> wrote:
> Or is this a share on a Windows machine that you're accessing through
> your Debian box?

It's a USB pen drive attached onto my router. Maybe I can set `umask`
from `mount` parameters... (?). But, which is it the right?



--
Openclose.it - Idee per il software libero
http://www.openclose.it


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/AANLkTinaMrQvrMNBZre6o1FyLHxVfR06vHWGsVUyL2wA(a)mail.gmail.com
From: Aniruddha on
On Fri, Jun 4, 2010 at 11:43 AM, Andrea Ganduglia <nonews.org(a)gmail.com> wrote:
> On Fri, Jun 4, 2010 at 2:29 AM, Rob Owens <rowens(a)ptd.net> wrote:
>> Or is this a share on a Windows machine that you're accessing through
>> your Debian box?
>
> It's a USB pen drive attached onto my router. Maybe I can set `umask`
> from `mount` parameters... (?). But, which is it the right?
>
You can try using chmod g+s <groupname> && chown -R root:<groupname>
on the directory. Then all newly created files will have the same
group. See also:

http://www.samba.org/samba/docs/using_samba/ch08.html

http://oreilly.com/catalog/samba/chapter/book/ch05_03.html


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/AANLkTimSOwJolvZ7uueSOdq-aaRIDOoZ9msZdK-C-k3b(a)mail.gmail.com