Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
$ cat /etc/slackware-version
Slackware 12.0.0
$ find --version
GNU find version 4.2.31
Built using GNU gnulib version 2007-02-24
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION
Oh hell, I feel like an idiot. It's FreeBSD not linux. But does that matter for the find command, aren't they the same code on both? I guess maybe not.
%uname -a
FreeBSD _______ 6.2-RELEASE-p1 FreeBSD 6.2-RELEASE-p1 #1: Mon May 7 14:30:09 EDT 2007
this is what it says in the perm section of man:
Code:
-perm [-|+]mode
The mode may be either symbolic (see chmod(1)) or an octal num-
ber. If the mode is symbolic, a starting value of zero is
assumed and the mode sets or clears permissions without regard to
the process' file mode creation mask. If the mode is octal, only
bits 07777 (S_ISUID | S_ISGID | S_ISTXT | S_IRWXU | S_IRWXG |
S_IRWXO) of the file's mode bits participate in the comparison.
If the mode is preceded by a dash (``-''), this primary evaluates
to true if at least all of the bits in the mode are set in the
file's mode bits. If the mode is preceded by a plus (``+''),
this primary evaluates to true if any of the bits in the mode are
set in the file's mode bits. Otherwise, this primary evaluates
to true if the bits in the mode exactly match the file's mode
bits. Note, the first character of a symbolic mode may not be a
dash (``-'').
Oh hell, I feel like an idiot. It's FreeBSD not linux. But does that matter for the find command, aren't they the same code on both? I guess maybe not.
No, not necessarily ... often the versions of tools shipped with
BSD are much closer to the old sysV stuff you also find in Slowaris.
Quote:
Originally Posted by Rotwang
%uname -a
FreeBSD _______ 6.2-RELEASE-p1 FreeBSD 6.2-RELEASE-p1 #1: Mon May 7 14:30:09 EDT 2007
this is what it says in the perm section of man:
Code:
-perm [-|+]mode
The mode may be either symbolic (see chmod(1)) or an octal num-
ber. If the mode is symbolic, a starting value of zero is
assumed and the mode sets or clears permissions without regard to
the process' file mode creation mask. If the mode is octal, only
bits 07777 (S_ISUID | S_ISGID | S_ISTXT | S_IRWXU | S_IRWXG |
S_IRWXO) of the file's mode bits participate in the comparison.
If the mode is preceded by a dash (``-''), this primary evaluates
to true if at least all of the bits in the mode are set in the
file's mode bits. If the mode is preceded by a plus (``+''),
this primary evaluates to true if any of the bits in the mode are
set in the file's mode bits. Otherwise, this primary evaluates
to true if the bits in the mode exactly match the file's mode
bits. Note, the first character of a symbolic mode may not be a
dash (``-'').
Well ... try the command I've given you in the first response
from a bash rather than a csh. I don't know how to escape the
! in csh.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.