home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.misc
- Path: sparky!uunet!spool.mu.edu!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!cs.titech!news
- From: news@cs.titech.ac.jp (Usenet News System)
- Subject: Re: possible to change file attributes from the shell?
- In-Reply-To: keith@cco.caltech.edu's message of 4 Nov 1992 20:37:07 GMT
- Message-ID: <Bx8IA6.2nt@cs.titech.ac.jp>
- Nntp-Posting-Host: csth-gw
- Organization: Department of Computer Science, Tokyo Institute of Technology
- References: <1d9c9jINNpig@gap.caltech.edu>
- Date: Thu, 5 Nov 1992 08:30:06 GMT
- Lines: 36
-
- --text follows this line--
- In article <1d9c9jINNpig@gap.caltech.edu> keith@cco.caltech.edu (Keith Allan Schneider) writes:
- From: akiy@cs.titech.ac.jp (Akiyama Jun)
- Path: siva!akiy
-
- > Is it possible to chage the file attributes through the shell? That is,
- > can you change the read/write protection, etc., without having to use
- > the workbench "info" utility?
- [stuff deleted]
- > keith@caltech.edu
-
- Sure. Try using the "protect" command through the CLI to specify
- which bits you wish to set/delete. For example,
-
- protect +rwed blah
-
- would activate the read, write, execute, and delete bits for its
- protection, whereas
-
- protect -rwed foo
-
- would delete the same switches from foo.
-
- I'm just about sure you can use the command with wildcards like '#?',
- so a command like
-
- protect +s #?.script
-
- should set the script bit for all files ending in ".script".
-
- Hope that helps.
-
- akiy@cs.titech.ac.jp[]Amiga/Mac/IBM/NeXT/NEC/Unix-box User
- UCLA undergrad (studying abroad)[]
- Tokyo Institute of Technology[]"Speech is of Time, Silence is of Eternity."
- Natural Language Processing[] ---Thomas Carlyle, _Sartor Resartus_
-