From: Dominic L Hilsbos <dhilsboslfs@sbcglobal.net>
To: linux-newbie@vger.kernel.org
Subject: Re: Setting permissions in a public folder
Date: Sat, 21 Feb 2004 00:57:17 -0500 [thread overview]
Message-ID: <4036F33D.3050801@sbcglobal.net> (raw)
Ok, as I understand it you have a (set) of folders:
/home/shared/backup/<user-name>/, where <user-name> is the (Linux?) user
name of the person you want to be able to connect to these, correct?
These folders (even though /home/shared/backup/ is owned and write able
only to root) are owned and read/write able by their own users, correct?
If that is the case your smb.conf entry 'should' look like this, I think
:-):
[backup]
comment = Backup Folder
path = /home/shared/backup/%u/ # %u expands to
<user-name> (the Linux user that samba generated from
# the login information it was given)
browsable = no #
this makes it so the share isn't listed with the SMB browse servers
read only = no
# this allows people to write to this share (note: only a user that has
Linux
# permissions to write to the directory will actually be
able to)
I don't 'think' you need the host allow option, or maybe set it as such:
host allow = ALL
which will allow the users to connect to the share from any machine, as
long as they authenticate correctly.
You certainly DO NOT want the guest ok, or guest only, options, that's
basically saying: allow ONLY the guest account (however that is setup)
to access this share (BTW, samba will use it's status as a root running
program to over-ride the read/write permissions a share to allow this).
I haven't tried this kind of thing, and I'd recommend testing it before
deploying it.
For more information I would recommend (the quite complete) "Using
Samba," especially Chapter 6, which, incidentally, is available as part
of the source tarball. Download the newest version of the sources for
www.samba.org, untar it, then go into the docs/htmldocs/ussing_samba/
directory and start reading :).
Eve Atley wrote:
>Michael et. al,
>
>Regarding yesterday's problem I am having with restricting user folders to
>each user under a public folder, I am still having questions about setting
>this one up. These are NOT the user folders automatically created in the
>HOME directory.
>
>The config in my smb.conf file for the directory in question:
>[backup]
> comment = Backup Folder
> path = /home/shared/backup
> read only = No
> guest only = Yes
> guest ok = Yes
> force group = +backup
> hosts allow = 192.168.10.
>
>I'm looking for the correct config. Without the hosts allow (haven't tried
>it with), I am able to connect correctly via a Unix command line, but not
>through the Windows share, so it appears to be a Samba problem.
>
>- Eve
--
Dominic L Hilsbos
"Peace can not be kept by force. It can only be achieved through understanding"
Albert Einstein
Linux registered user: 283861 http://counter.li.org/
LFS 5.0 ID:12136 http://linuxfromscratch.org/cgi-bin/lfscounter.cgi
Linux-Mandrake 9.2
Windows XP
--
Dominic L Hilsbos
"Peace can not be kept by force. It can only be achieved through understanding"
Albert Einstein
Linux registered user: 283861 http://counter.li.org/
LFS 5.0 ID:12136 http://linuxfromscratch.org/cgi-bin/lfscounter.cgi
Linux-Mandrake 9.2
Windows XP
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
next reply other threads:[~2004-02-21 5:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-21 5:57 Dominic L Hilsbos [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-02-19 18:46 Setting permissions in a public folder Eve Atley
2004-02-19 1:41 Eve Atley
2004-02-19 0:17 ` Michael Anaya
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=4036F33D.3050801@sbcglobal.net \
--to=dhilsboslfs@sbcglobal.net \
--cc=linux-newbie@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).