Welcome, Guest. Please login or register.

Author Topic: Protect options  (Read 2816 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline XDelusionTopic starter

  • Alien Breeder
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 5089
    • Show only replies by XDelusion
    • http://starwarslegacy.net/
Protect options
« on: February 16, 2011, 05:17:17 AM »
What are the options for the protect command? How do I protect and unprotect single files, also how do I protect and unprotect entire folders?
Earth has a lot of things other folks might want... like the whole planet. And maybe these folks would like a few changes made, like more carbon dioxide in the atmosphere and room for their way of life. - William S. Burroughs
 

Offline runequester

  • It\'s Amiga time!
  • Hero Member
  • *****
  • Join Date: Oct 2009
  • Posts: 3695
    • Show only replies by runequester
Re: Protect options
« Reply #1 on: February 16, 2011, 05:34:09 AM »
for a single file, it should just be PROTECT [file]

so PROTECT HDD:stuff/pornstash/URMOM -d (to prevent deletion)


this is in 3.1 anyways
 

Offline XDelusionTopic starter

  • Alien Breeder
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 5089
    • Show only replies by XDelusion
    • http://starwarslegacy.net/
Re: Protect options
« Reply #2 on: February 16, 2011, 05:44:56 AM »
And how do I unprotect files and folders?
Earth has a lot of things other folks might want... like the whole planet. And maybe these folks would like a few changes made, like more carbon dioxide in the atmosphere and room for their way of life. - William S. Burroughs
 

Offline runequester

  • It\'s Amiga time!
  • Hero Member
  • *****
  • Join Date: Oct 2009
  • Posts: 3695
    • Show only replies by runequester
Re: Protect options
« Reply #3 on: February 16, 2011, 06:46:49 AM »
you set or remove protection bits with + and - (or ADD / SUB )

Please test this on some junk file first though ;)
 

Offline fishy_fiz

  • Hero Member
  • *****
  • Join Date: Jan 2005
  • Posts: 1813
    • Show only replies by fishy_fiz
Re: Protect options
« Reply #4 on: February 16, 2011, 07:00:26 AM »
Try (for example)
protect dhx:rootpath/#? RWED to set the file to be able to read, write, edit, delete all files and folders contained from dhx:rootpath. Adding minus before the flags (RWED) I believe will disallow those options from the file.
« Last Edit: February 16, 2011, 07:02:52 AM by fishy_fiz »
Near as I can tell this is where I write something under the guise of being innocuous, but really its a pot shot at another persons/peoples choice of Amiga based systems. Unfortunately only I cant see how transparent and petty it makes me look.