A regular expression and a Windows permission (cacls) question

Click For Summary
The regular expression "\\+" matches the literal character "\" followed by the quantifier "+", which indicates one or more occurrences. When including quotes, the expression matches the characters '"' and '\' literally. For testing and learning about regular expressions, numerous free online tools are available that support various regex flavors like PCRE and ECMAScript. The cacls command, used for modifying file and folder permissions in Windows, has limitations, particularly in granting "modify" access. It can provide read, write, change, and full control permissions but lacks the ability to set modify access. The command has been largely replaced by icacls, which offers enhanced capabilities, including the ability to grant modify access, and is available from Windows Server 2003 Service Pack 2 onwards.
Crosshash
Messages
50
Reaction score
0
Hello, firstly, what does the regular expression "\\+" do? Would that literally match up "\+". Could I possibly get some recommendations on some software to try regular expressions with as well actually please?

and secondly, I've been fiddling around with the cacls command and I've noticed that it doesn't seem to be able to give users "modify" access. It can

give read, write, change and full control to users but not modify (and I think some others too). How do you grant modify access to a file in the command line?

(this is for my coursework and I'm kind of stumped on these two questions).

Thanks guys.
 
Computer science news on Phys.org
Most likely, the question is about the regular expression without quotes. The regular expression \\+ matches the character \ literally. The + is the quantifier which matches between one and unlimited times.

In a different case - i.e. if we also include the quotes, the reg ex "\\+" matches the characters " and \ literally. For the character \ the expression uses the quantifier + which matches between one and unlimited times. It also matches the character " in the end.

Nowadays, with a simple google search, we can find a number of free online software applications for regular expressions of various flavors (PCRE, ECMAScript etc.) which help in learning about, testing, debugging, generate code etc.

The cacls command, which is an abbreviation for change access control lists, is a command line utility for displaying and modifying the security descriptors on folders and files. An access control list is a list of permissions for the object (file or folder) at hand. cacls has had a long history with the Windows operating system. Quoting from docs.microsoft.com : "The original cacls shipped with Windows NT 4.0 and enabled a set of basic capabilities for changing permissions at the command line but was limited in what it could accomplish. To resolve these limitations, Microsoft subsequently released an expanded xcacls in the Windows NT Resource Kit. Later yet, an unsupported xcacls.vbs was released that went further with capability but backward in terms of performance. ". Microsoft subsequently released - 2007 as initial release, icacls as cacls replacement, which is a full-featured version from Windows Server 2003 Service Pack 2 on and includes among others the modify capability, not present in the cacls command.
 
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...

Similar threads

Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 23 ·
Replies
23
Views
3K
Replies
29
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
1
Views
2K
Replies
2
Views
6K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 2 ·
Replies
2
Views
2K