# Access permission - SMB

This is a discussion on Access permission - SMB ; Let say i have 3 directories on samba server, does anybody know how to make one of the directories can be read and write by every user? how to make one of the directories can be read only but cant ...

1. ## Access permission

Let say i have 3 directories on samba server, does anybody know how to
make one of the directories can be read and write by every user? how
to make one of the directories can be read only but cant write by
every user? how to make one Of the directories can be read and write
by certain user, meaning that inside this directory, every user has
their own directory and every user can only read and write their own
directory?
i m a newbie..10s for help..

2. ## Re: Access permission

"ZaGras" wrote in message
> Let say i have 3 directories on samba server, does anybody know how to
> make one of the directories can be read and write by every user? how
> to make one of the directories can be read only but cant write by
> every user? how to make one Of the directories can be read and write
> by certain user, meaning that inside this directory, every user has
> their own directory and every user can only read and write their own
> directory?
> i m a newbie..10s for help..

[Public]
path = /some/directory
guest only = Yes
guest ok = Yes

You can also do this with:

[Public]
comment = Read/Write to valid users
path = /some/directory

The difference is that the second version preserves the user name and group
when they create files or directories, and gives access to other valid users
in the same group. The former users the nobody account to create iles and
directories.

[Public2]
comment = Read by anybody/Write by None
path = /some/directory
guest ok = Yes

If you remove the guest ok = Yes, then only valid users can read this
directory. Nobody can write to this directory.

[homes]
comment = Read/Write by one one user
browseable = No

The homes directory is a special directory that points to /home/username,
where username is the username of the current user. Everybody has their own
directory, where only they can read/write. The directory must exist and is
usually created when you create a new user.

3. ## Re: Access permission

>
> [Public2]
> comment = Read by anybody/Write by None
> path = /some/directory
> guest ok = Yes
>
> If you remove the guest ok = Yes, then only valid users can read this
> directory. Nobody can write to this directory.

regarding this, since nobody can write to this directory, and since i
want to let others can read the document in this directory, before
they can read , i must write some document to this directory , with
read only = Yes, i can't write. how to solve?

> [homes]
> comment = Read/Write by one one user
> browseable = No
>
> The homes directory is a special directory that points to /home/username,
> where username is the username of the current user. Everybody has their own
> directory, where only they can read/write. The directory must exist and is
> usually created when you create a new user.

besides home directory, any other methods?

4. ## Re: Access permission

"ZaGras" wrote in message
> >
> > [Public2]
> > comment = Read by anybody/Write by None
> > path = /some/directory
> > read only = Yes
> > guest ok = Yes
> >
> > If you remove the guest ok = Yes, then only valid users can read this
> > directory. Nobody can write to this directory.

>
> regarding this, since nobody can write to this directory, and since i
> want to let others can read the document in this directory, before
> they can read , i must write some document to this directory , with
> read only = Yes, i can't write. how to solve?
>

[Public2]
comment = Read by anybody/Write by manager
path = /some/directory
write list = manager
guest ok = Yes

> > [homes]
> > comment = Read/Write by one one user
> > read only = No
> > browseable = No
> >
> > The homes directory is a special directory that points to

> > where username is the username of the current user. Everybody has their

own
> > directory, where only they can read/write. The directory must exist and

is
> > usually created when you create a new user.

>
> besides home directory, any other methods?

path = /some/directory/%u

5. ## Re: Access permission

"m.marien" wrote in message news:...
> "ZaGras" wrote in message
> > >
> > > [Public2]
> > > comment = Read by anybody/Write by None
> > > path = /some/directory
> > > read only = Yes
> > > guest ok = Yes
> > >
> > > If you remove the guest ok = Yes, then only valid users can read this
> > > directory. Nobody can write to this directory.

> >
> > regarding this, since nobody can write to this directory, and since i
> > want to let others can read the document in this directory, before
> > they can read , i must write some document to this directory , with
> > read only = Yes, i can't write. how to solve?
> >

>
> [Public2]
> comment = Read by anybody/Write by manager
> path = /some/directory
> write list = manager
> guest ok = Yes
>
> > > [homes]
> > > comment = Read/Write by one one user
> > > read only = No
> > > browseable = No
> > >
> > > The homes directory is a special directory that points to

> > > where username is the username of the current user. Everybody has their

> own
> > > directory, where only they can read/write. The directory must exist and

> is
> > > usually created when you create a new user.

> >
> > besides home directory, any other methods?

>
> path = /some/directory/%u

i set the path something like this, path = /some/directory/%u

but when i try to access the above directory from XP box, the
following message was prompted:
whether you have the access permission.

what is the problem? how to solve?

6. ## Re: Access permission

"ZaGras" wrote in message
> "m.marien" wrote in message

news:...
> > "ZaGras" wrote in message
> > > >
> > > > [Public2]
> > > > comment = Read by anybody/Write by None
> > > > path = /some/directory
> > > > read only = Yes
> > > > guest ok = Yes
> > > >
> > > > If you remove the guest ok = Yes, then only valid users can read

this
> > > > directory. Nobody can write to this directory.
> > >
> > > regarding this, since nobody can write to this directory, and since i
> > > want to let others can read the document in this directory, before
> > > they can read , i must write some document to this directory , with
> > > read only = Yes, i can't write. how to solve?
> > >

> >
> > [Public2]
> > comment = Read by anybody/Write by manager
> > path = /some/directory
> > write list = manager
> > guest ok = Yes
> >
> > > > [homes]
> > > > comment = Read/Write by one one user
> > > > read only = No
> > > > browseable = No
> > > >
> > > > The homes directory is a special directory that points to

> > > > where username is the username of the current user. Everybody has

their
> > own
> > > > directory, where only they can read/write. The directory must exist

and
> > is
> > > > usually created when you create a new user.
> > >
> > > besides home directory, any other methods?

> >
> > path = /some/directory/%u

>
> i set the path something like this, path = /some/directory/%u
>
> but when i try to access the above directory from XP box, the
> following message was prompted:
> whether you have the access permission.
>
> what is the problem? how to solve?

what about the rw permissions for those directories ? are they set OK ?

7. ## Re: Access permission

"imbsysop" wrote in message news:...
> "ZaGras" wrote in message
> > "m.marien" wrote in message

> news:...
> > > "ZaGras" wrote in message
> > > > >
> > > > > [Public2]
> > > > > comment = Read by anybody/Write by None
> > > > > path = /some/directory
> > > > > read only = Yes
> > > > > guest ok = Yes
> > > > >
> > > > > If you remove the guest ok = Yes, then only valid users can read

> this
> > > > > directory. Nobody can write to this directory.
> > > >
> > > > regarding this, since nobody can write to this directory, and since i
> > > > want to let others can read the document in this directory, before
> > > > they can read , i must write some document to this directory , with
> > > > read only = Yes, i can't write. how to solve?
> > > >
> > >
> > > [Public2]
> > > comment = Read by anybody/Write by manager
> > > path = /some/directory
> > > write list = manager
> > > guest ok = Yes
> > >
> > > > > [homes]
> > > > > comment = Read/Write by one one user
> > > > > read only = No
> > > > > browseable = No
> > > > >
> > > > > The homes directory is a special directory that points to

> > > > > where username is the username of the current user. Everybody has

> their
> own
> > > > > directory, where only they can read/write. The directory must exist

> and
> is
> > > > > usually created when you create a new user.
> > > >
> > > > besides home directory, any other methods?
> > >
> > > path = /some/directory/%u

> >
> > i set the path something like this, path = /some/directory/%u
> >
> > but when i try to access the above directory from XP box, the
> > following message was prompted:
> > whether you have the access permission.
> >
> > what is the problem? how to solve?

>
> what about the rw permissions for those directories ? are they set OK ?

yes. rw permissions for those directories are set ok.

8. ## Re: Access permission

zagras812@hotmail.com (ZaGras) wrote in message news:...
> "m.marien" wrote in message news:...
> > "ZaGras" wrote in message
> > > >
> > > > [Public2]
> > > > comment = Read by anybody/Write by None
> > > > path = /some/directory
> > > > read only = Yes
> > > > guest ok = Yes
> > > >
> > > > If you remove the guest ok = Yes, then only valid users can read this
> > > > directory. Nobody can write to this directory.
> > >
> > > regarding this, since nobody can write to this directory, and since i
> > > want to let others can read the document in this directory, before
> > > they can read , i must write some document to this directory , with
> > > read only = Yes, i can't write. how to solve?
> > >

> >
> > [Public2]
> > comment = Read by anybody/Write by manager
> > path = /some/directory
> > write list = manager
> > guest ok = Yes
> >
> > > > [homes]
> > > > comment = Read/Write by one one user
> > > > read only = No
> > > > browseable = No
> > > >
> > > > The homes directory is a special directory that points to

> > > > where username is the username of the current user. Everybody has their

> own
> > > > directory, where only they can read/write. The directory must exist and

> is
> > > > usually created when you create a new user.
> > >
> > > besides home directory, any other methods?

> >
> > path = /some/directory/%u

>
> i set the path something like this, path = /some/directory/%u
>
> but when i try to access the above directory from XP box, the
> following message was prompted: