public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Harry Putnam <reader@newsguy.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user]  Re: [cifs] permissions of mounted share
Date: Sun, 11 Jan 2009 10:12:15 -0600	[thread overview]
Message-ID: <87tz85255s.fsf@newsguy.com> (raw)
In-Reply-To: fecdbac60901110613v13ff7f0fledcbc44abffdda8b@mail.gmail.com

"Arttu V." <arttuv69@gmail.com> writes:

> On 1/11/09, Harry Putnam <reader@newsguy.com> wrote:
>> Any regular files I create on the mounted share end up 744.
>>
>> Can I set a umask in the mount syntax or what do I need to do here to
>> have the files keep the standard permissions?
>
> force create mode = 644
> force directory mode = 755
>
> Wouldn't that do it on the server so you wouldn't have to worry about
> the clients? Or have you already tried and it still fudges the access
> permissions?

I didn't know about those parameters but looking them up in man
smb.conf it appears it would not effect anything done by the clients.
Far as I understand it the servers smb.conf doesn't come into play when
a client mounts a share.  

I've already set 644 and 755 on the existing files... by hand as
reported in OP.

But let me try it out before nay saying too much.

I added those params to smb.conf  then restarted samba.

Went to a client... mounted a share and attempted to copy a directory
into the share from clients file system..

Remember now that user and group are the same for both server and
client on these particular files.

The change in server smb.conf appears to have changed nothing.  Still
when I copy or create files they have 744 instead of 644 permissions.




      reply	other threads:[~2009-01-11 16:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-11  7:07 [gentoo-user] [cifs] permissions of mounted share Harry Putnam
2009-01-11 14:13 ` Arttu V.
2009-01-11 16:12   ` Harry Putnam [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tz85255s.fsf@newsguy.com \
    --to=reader@newsguy.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox