Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127017 - FALSE STATEMENT: The sudo tool allows for regular expressions to be used as well.
Summary: FALSE STATEMENT: The sudo tool allows for regular expressions to be used as w...
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Other documents (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Xavier Neys (RETIRED)
URL: http://www.gentoo.org/doc/en/sudo-gui...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-20 15:30 UTC by Antek Grzymała (antoszka)
Modified: 2006-07-14 04:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
A diff... (sudo-guide.diff,788 bytes, patch)
2006-07-14 03:11 UTC, Peter Weller (RETIRED)
Details | Diff
Revised edition ^_- (sudo-guide.diff,976 bytes, patch)
2006-07-14 03:43 UTC, Peter Weller (RETIRED)
Details | Diff
Fixed date (sudo-guide.diff,976 bytes, patch)
2006-07-14 03:49 UTC, Peter Weller (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antek Grzymała (antoszka) 2006-03-20 15:30:44 UTC
The statement mentioned in the summary in not only false, but is also included in the guide's translations. I happen to be the author of the Polish translation and believed this false statement until I tried using regular expressions in sudo myself. Well the reality is not as sweet, here's a quote from sudo's original manual:

sudo allows shell-style wildcards (aka meta or glob characters) to be used in pathnames as well as command line arguments in the sudoers file. Wildcard matching is done via the POSIX fnmatch(3) routine. Note that these are not regular expressions.

We need to fix that quick along with a nonworking example: '/usr/bin/passwd [a-zA-Z0-9_-]*'.

Regards, antoni
Comment 1 Peter Weller (RETIRED) gentoo-dev 2006-07-14 03:11:37 UTC
Created attachment 91693 [details, diff]
A diff...

Fixed the regular expressions problem in this patch, haven't provided any kind of example though.
Comment 2 Peter Weller (RETIRED) gentoo-dev 2006-07-14 03:43:45 UTC
Created attachment 91696 [details, diff]
Revised edition ^_-

Had some invalid XML in that last version, here's the revised edition ^_^
Comment 3 Peter Weller (RETIRED) gentoo-dev 2006-07-14 03:49:15 UTC
Created attachment 91697 [details, diff]
Fixed date

/me wishes all countries would have the same date format...
Comment 4 Xavier Neys (RETIRED) gentoo-dev 2006-07-14 03:51:25 UTC
(In reply to comment #3)
> /me wishes all countries would have the same date format...

They have. It's called ISO-8601
Comment 5 Xavier Neys (RETIRED) gentoo-dev 2006-07-14 04:46:53 UTC
In CVS.
Thanks to reporter & patcher