Visit Our UNIX and Linux User Community

man command

Thread Tools Search this Thread
Operating Systems Linux man command
# 1  
Old 04-08-2010
man command

Hey people do u know how to disable the man command in linux???

i am not able to do anythg apart from disabling the permission for /usr/bin/...
i dont wanna uninstall the man / man pages also...

this has been one of the toughest challenges i have come across in linux...

can anybody put their brains on work for this???Smilie
# 2  
Old 04-08-2010
May I ask why do you want to do that ? Why chmod-ing /usr/bin/man is not sufficient ? What version and which is your OS ?
# 3  
Old 04-08-2010
preventing people from running it would be how you "disable" it, yes. You could uninstall it completely if your distro lets you. I wouldn't be surprised if many distros consider man part of their fundamental base installation and can't dice it out, though... Really, manpages are fundamental and pretty harmless, so unless you're installing in a very space-critical environment, why not leave it?
# 4  
Old 04-08-2010

im jus tryin it out...
all i knw is...IT IS POSSIBLE...n im jus findin out how!!!
i have seen it done...
i knw it is completely harmless to ur OS...but its a challenge...NOTHG STANDS IMPOSSIBLE...n that too in Linux ways...
i can easily uninstall it...but thats not sumthg i wish to achieve...i want it up and running but not functional...i admit it is a bible for beginners like cant afford to loose it either!!!

im running Redhat Ent Edition 5...

btw thanks for replyin...Smilie
# 5  
Old 04-08-2010
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 ----------

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 04:22 PM..
# 6  
Old 04-08-2010
Hey Corona88,
that was very good...
just the things i wanted!!!Smilie
this is creative...
thanks a lot

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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

Featured Tech Videos