[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Groups, Permissions and /Share



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Cédric Lucantis wrote:
>>> I have set up a nice big /Share directory on a separate HD, and would
>>> like to create a document repository there accessible by all users. So
>>> far only the root user can read, write and execute on the /Share
>>> directory. What is the best way to accomplish this?
>>>
>>> I don't mind reading tutorials and other docs, but at this point in my
>>> Debian education, they need to be suitability simple. Any links to
>>> such material would be much appreciated.
>>>
>>> [...]
>> You could try the NewbieDOC wiki (documentation for newbies). There is
>> an article on users and groups -
>> http://newbiedoc.berlios.de/wiki/Manage_users_and_groups - which may get
>> you started.
>>
>> Basically, you could put your users into a new group, give the group
>> ownership if the directory using chgrp, and give the permissions you
>> wish to the group on the directory group with chmod g+rwx.
>>
>> Try the manual pages (eg "man chmod") and google search (eg for
>> "chmod"). When you have succeeded, you might consider documenting your
>> efforts on the NewbieDOC wiki. :)
> 
> Another good source of infos about that and unix systems in general are the 
> coreutils doc (info coreutils). You'll find a lot of useful tricks there. The 
> section 'file permissions' explains all this in details, and 'changing files 
> attributes' describes chmod and chown.
> 

While the above link may be helpful for newbies, that page will not help
the OP do what he's asking.

Perhaps this link is better:

http://newbiedoc.berlios.de/wiki/Questions#Sharing_a_directory

However, if a user creates a directory inside that directory, AFAIK,
that directory will not be writable by all, only by the user who created it.

I ran into that sort of problem.  My solution was to use a umask=0 in
/etc/fstab for the whole partition (that is shared).

I imagine that this is not very secure, but on my little network it
works fine.

Joe
- --
Registerd Linux user #443289 at http://counter.li.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF8wjeiXBCVWpc5J4RAthTAJ9SfdR6rQ7LNmojmNN8/jnOZBTTtwCfQhXF
6un78VAaJY/CUlPZhWssnIg=
=Ftew
-----END PGP SIGNATURE-----



Reply to: