Sponsored Content
Full Discussion: man command
Operating Systems Linux man command Post 302411453 by Corona688 on Thursday 8th of April 2010 02:16:27 PM
Old 04-08-2010
Quote:
Originally Posted by linux.user
im jus tryin it out...
all i knw is...IT IS POSSIBLE...n im jus findin out how!!!
Of course it's possible -- you already did it -- unless I misunderstood you and you didn't?

chmod 000 /usr/bin/man to disable all permissions on /usr/bin/man .
UNIX file permissions are kind of the opposite of windows ones... on windows you might set a file 'read only', on UNIX a file must be set 'allow read' for people to read it in the first place. 0 means no permissions, 1 means execute, 2 means write, 4 means read, and you can sum those together to get combinations.

These are repeated three times, one for users, once for user groups, and once for world permissions, hence chmod 000 instead of just chmod 0.

To learn more about chmod, and UNIX file permissions in general, run 'man chmod'. Oh wait. Smilie First run 'chmod 2551 /usr/bin/man' to set man back to normal, then run 'man chmod'. The 2 in front is a special extra bit to allow others to run it as a different user.

---------- Post updated at 12:16 PM ---------- Previous update was at 11:34 AM ----------

Quote:
Originally Posted by linux.user
im jus tryin it out...
all i knw is...IT IS POSSIBLE...n im jus findin out how!!!
Rereading the thread you still seem to be hunting for some magical "other" way to disable a program. There's lots of ways to do it -- overwrite it with a shell script that yells at the user, play tricks with mount to display an entirely different partition on /usr/bin/, set the noexec flag in your fstab so no programs in there can be run at all, alias 'man' to 'fortune' in your .bashrc, etc, etc, etc, etc, etc. Other admins could probably think of more creative and even sillier ways than mine. But none of these are the "disable_programs_without_chmod.exe" you think we're hiding from you. They're ordinary features for completely different things being (ab)used creatively. File ownership and permissions are the real way to get what you want done.

Last edited by Corona688; 04-08-2010 at 03:22 PM..
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Man command

I know what the man command does and I know how to use it, but i am trying to find an answer to a question. When you run man on an other command it will give you the first page on your screen and then you hit the space bar and it brings up the second page. What command option would I use if I... (5 Replies)
Discussion started by: shipoffools
5 Replies

2. Programming

man pages of any command from a c program in unix

i wanted to display the man pages of any command in unix from a c program.can some one help me plzzzzzz. (2 Replies)
Discussion started by: spanduu
2 Replies

3. Solaris

Creating a Man page for a command

Hi, I would like to develop a man page as the one we usually get when we execute man <command name>. This man page will be for a samll utility that i have written. If this is not possible then what are the available possibilites for creating such help. thanks in advance. (2 Replies)
Discussion started by: raghu.amilineni
2 Replies

4. Shell Programming and Scripting

Man command

How to get only the options and arguments of a command excluding the descriptive help? (1 Reply)
Discussion started by: mayur_verma
1 Replies

5. Homework & Coursework Questions

man command output to a txt file

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I am trying to outut the man command output into a text file which will help me for future reference. 2.... (8 Replies)
Discussion started by: hariniiyer300
8 Replies

6. UNIX for Dummies Questions & Answers

Unix man command to find out month of the year?

how can i display month of the year i was born with using man command? thanks (2 Replies)
Discussion started by: janetroop95
2 Replies

7. UNIX for Dummies Questions & Answers

MAN command for various shells

Whenever I run manual page on a command I get information about arguments, syntax and so on. However, I wounder if that information is valid only for a certain shell and if yes, then for which one? In other words, would I have different man outputs for csh, ksh, bash and others? Thanks (7 Replies)
Discussion started by: rdogadin
7 Replies

8. Shell Programming and Scripting

Description of the option print0 in the command find (man page)

This is the description of the option -print0 fon the command find in the man page: What does the "True" in the first line of the description mean? (3 Replies)
Discussion started by: puertas12
3 Replies

9. UNIX for Beginners Questions & Answers

Using man command

hi linux expert how to use man command for get help about "extended regular expression"? many thanks samad (2 Replies)
Discussion started by: abdossamad2003
2 Replies
MAN.CONF(5)							File Formats Manual						       MAN.CONF(5)

NAME
man.conf - configuration data for man DESCRIPTION
This file is read by man(1) and contains (a) information on how to construct the search path for man, (b) full path names for various pro- grams like nroff, eqn, tbl etc. used by man, and (c) a list with uncompressors for files with a given extension. An alternative version of this file can be specified with man -C private_man.conf ... The command names may be provided with options. Useful options to nroff can be found in grotty(1). For example, instead of the default line NROFF /usr/bin/groff -mandoc -Tlatin1 one may write NROFF /usr/bin/groff -mandoc -Tlatin1 -P-u -P-b in order to suppress underlining and overstriking. FILES
/private/etc/man.conf AUTHOR
John W. Eaton was the original author of man. Zeyd M. Ben-Halim released man 1.2, and Andries Brouwer followed up with versions 1.3 thru 1.5p. Federico Lucifredi <flucifredi@acm.org> is the current maintainer. SEE ALSO
col(1), (g)eqn(1), (g)pic(1), groff(1), grotty(1), (g)refer(1), (g)tbl(1), less(1), man (1) and compress(1), gzip(1). September 19, 2005 MAN.CONF(5)
All times are GMT -4. The time now is 01:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy