Skip to main content
Formatting.
Source Link
Stephen Kitt
  • 481k
  • 59
  • 1.2k
  • 1.4k

The context here is presumably this section of the finger manpage:

~/.nofinger

If finger finds this file in a user's home directory, it will, for finger requests originating outside the local local host, firmly deny the existence of that user. For this to work, the finger program, as started by fingerd(8) fingerd(8), must be able to see the .nofinger.nofinger file. This generally means that the home directory contain‐ ingcontaining the file must have the other-users-execute bit set (o+x). See chmod(1)chmod(1). If you use this feature for
privacy privacy, please test it with ``finger @localhost''“finger @localhost” before relying on it, just in case.

Once you know how chmod works, this tells you what to do: chmod o+x /path/to/home/directory. As a regular user, you can do this as follows:

cd
chmod o+x .

Root can change all home directories:

sudo chmod o+x /home/*/

In the GNU chmod manpage, the following paragraphs explain this:

The format of a symbolic mode is [ugoa...][[-+=][perms...]...][ugoa...][[-+=][perms...]...], where perms perms is either zero or more letters from the set rwxXstrwxXst, or a single letter letter from the set ugougo. Multiple symbolic modes can be given, separated separated by commas.

A combination of the letters ugoaugoa controls which users' access to the file file will be changed: the user who owns it (uu), other users in the file's file's group (gg), other users not in the file's group (oo), or all users users (aa). If none of these are given, the effect is as if (aa) were given given, but bits that are set in the umask are not affected.

The operator ++ causes the selected file mode bits to be added to the existing existing file mode bits of each file; -- causes them to be removed; and = and = causes them to be added and causes unmentioned bits to be removed removed except that a directory's unmentioned set user and group ID bits bits are not affected.

The letters rwxXstrwxXst select file mode bits for the affected users: read    (rr), write (ww), execute (or search for directories) (xx), execute execute/search only if the file is a directory or already has execute permission permission for some user (XX), set user or group ID on execution (ss), restricted restricted deletion flag or sticky bit (tt). Instead of one or more of of these letters, you can specify exactly one of the letters ugougo: the permissions permissions granted to the user who owns the file (uu), the permissions permissions granted to other users who are members of the file's group group (gg), and the permissions granted to users that are in neither of of the two preceding categories (oo).

The context here is presumably this section of the finger manpage:

~/.nofinger

If finger finds this file in a user's home directory, it will, for finger requests originating outside the local host, firmly deny the existence of that user. For this to work, the finger program, as started by fingerd(8), must be able to see the .nofinger file. This generally means that the home directory contain‐ ing the file must have the other-users-execute bit set (o+x). See chmod(1). If you use this feature for
privacy, please test it with ``finger @localhost'' before relying on it, just in case.

Once you know how chmod works, this tells you what to do: chmod o+x /path/to/home/directory. As a regular user, you can do this as follows:

cd
chmod o+x .

Root can change all home directories:

sudo chmod o+x /home/*/

In the GNU chmod manpage, the following paragraphs explain this:

The format of a symbolic mode is [ugoa...][[-+=][perms...]...], where perms is either zero or more letters from the set rwxXst, or a single letter from the set ugo. Multiple symbolic modes can be given, separated by commas.

A combination of the letters ugoa controls which users' access to the file will be changed: the user who owns it (u), other users in the file's group (g), other users not in the file's group (o), or all users (a). If none of these are given, the effect is as if (a) were given, but bits that are set in the umask are not affected.

The operator + causes the selected file mode bits to be added to the existing file mode bits of each file; - causes them to be removed; and = causes them to be added and causes unmentioned bits to be removed except that a directory's unmentioned set user and group ID bits are not affected.

The letters rwxXst select file mode bits for the affected users: read  (r), write (w), execute (or search for directories) (x), execute/search only if the file is a directory or already has execute permission for some user (X), set user or group ID on execution (s), restricted deletion flag or sticky bit (t). Instead of one or more of these letters, you can specify exactly one of the letters ugo: the permissions granted to the user who owns the file (u), the permissions granted to other users who are members of the file's group (g), and the permissions granted to users that are in neither of the two preceding categories (o).

The context here is presumably this section of the finger manpage:

~/.nofinger

If finger finds this file in a user's home directory, it will, for finger requests originating outside the local host, firmly deny the existence of that user. For this to work, the finger program, as started by fingerd(8), must be able to see the .nofinger file. This generally means that the home directory containing the file must have the other-users-execute bit set (o+x). See chmod(1). If you use this feature for privacy, please test it with “finger @localhost” before relying on it, just in case.

Once you know how chmod works, this tells you what to do: chmod o+x /path/to/home/directory. As a regular user, you can do this as follows:

cd
chmod o+x .

Root can change all home directories:

sudo chmod o+x /home/*/

In the GNU chmod manpage, the following paragraphs explain this:

The format of a symbolic mode is [ugoa...][[-+=][perms...]...], where perms is either zero or more letters from the set rwxXst, or a single letter from the set ugo. Multiple symbolic modes can be given, separated by commas.

A combination of the letters ugoa controls which users' access to the file will be changed: the user who owns it (u), other users in the file's group (g), other users not in the file's group (o), or all users (a). If none of these are given, the effect is as if (a) were given, but bits that are set in the umask are not affected.

The operator + causes the selected file mode bits to be added to the existing file mode bits of each file; - causes them to be removed; and = causes them to be added and causes unmentioned bits to be removed except that a directory's unmentioned set user and group ID bits are not affected.

The letters rwxXst select file mode bits for the affected users: read  (r), write (w), execute (or search for directories) (x), execute/search only if the file is a directory or already has execute permission for some user (X), set user or group ID on execution (s), restricted deletion flag or sticky bit (t). Instead of one or more of these letters, you can specify exactly one of the letters ugo: the permissions granted to the user who owns the file (u), the permissions granted to other users who are members of the file's group (g), and the permissions granted to users that are in neither of the two preceding categories (o).

Source Link
Stephen Kitt
  • 481k
  • 59
  • 1.2k
  • 1.4k

The context here is presumably this section of the finger manpage:

~/.nofinger

If finger finds this file in a user's home directory, it will, for finger requests originating outside the local host, firmly deny the existence of that user. For this to work, the finger program, as started by fingerd(8), must be able to see the .nofinger file. This generally means that the home directory contain‐ ing the file must have the other-users-execute bit set (o+x). See chmod(1). If you use this feature for
privacy, please test it with ``finger @localhost'' before relying on it, just in case.

Once you know how chmod works, this tells you what to do: chmod o+x /path/to/home/directory. As a regular user, you can do this as follows:

cd
chmod o+x .

Root can change all home directories:

sudo chmod o+x /home/*/

In the GNU chmod manpage, the following paragraphs explain this:

The format of a symbolic mode is [ugoa...][[-+=][perms...]...], where perms is either zero or more letters from the set rwxXst, or a single letter from the set ugo. Multiple symbolic modes can be given, separated by commas.

A combination of the letters ugoa controls which users' access to the file will be changed: the user who owns it (u), other users in the file's group (g), other users not in the file's group (o), or all users (a). If none of these are given, the effect is as if (a) were given, but bits that are set in the umask are not affected.

The operator + causes the selected file mode bits to be added to the existing file mode bits of each file; - causes them to be removed; and = causes them to be added and causes unmentioned bits to be removed except that a directory's unmentioned set user and group ID bits are not affected.

The letters rwxXst select file mode bits for the affected users: read (r), write (w), execute (or search for directories) (x), execute/search only if the file is a directory or already has execute permission for some user (X), set user or group ID on execution (s), restricted deletion flag or sticky bit (t). Instead of one or more of these letters, you can specify exactly one of the letters ugo: the permissions granted to the user who owns the file (u), the permissions granted to other users who are members of the file's group (g), and the permissions granted to users that are in neither of the two preceding categories (o).