Re: Files & permissions

"Andreas Lund" <[email protected]> Sun, 21 Jul 2004 14:18:19 -0000
Newsgroups gmane.linux.redhat.release.valhalla
Message-ID <[email protected]>
Wed, 21 Jul 2004 11:45:55 +0100, "Harry Hambi" <[email protected]> wrote:
> Hi All,
> I have  files that I would like others to have read only, the machine in
> question is a linux dhcp server,there's only one username & password to
> this box.how do I create another account to this box with read only
> access to all files on the box.

If by "all files on the box" you mean system files and the lot, the short
answer is that you can't and you probably wouldn't really want to.

To get an understanding of the UN*X file permission model, have a look at the
manpage for "chmod" by typing "man chmod" at the command prompt.


However, if you mean within a certain file area, like you want to use your
linux box as a file server then I'd look at Samba if I were you. Samba lets
your linux box emulate a Windos server, and shares can be set up with
read/write or read-only permissions based on the user name.

See www.samba.org for more information, the RPMs are included with RH Linux
but you might want to go with a slightly newer version :-)

Hope this helps,


--
Andreas Lund ([email protected])
Tel: +47 90.07.71.62 / +47 63.88.33.56
Ano-Tech Computers (http://www.atc.no/)
** He had a baseball bat and I was tied to a chair. 
** Pissing him off was the smart thing to do.  -- Max Payne