Linux Apache (4) Network (12) shell (12)
Exchange Links About this site Links to us
 
|
General :: Linux :: shell
Linux shell programming/ scripting, shortcuts and general know-how.
Articles:
This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.
Featured Article
How to set the setuid and setgid bit for files in UnixQuestion: I need to set setuid and setgid bit for files.
Please show me how to. And what is the exact purpose of the uid bit?
Answer: In the shell just type the commands shown in the box below to set the uid or gid bits.
The purpose of the uid bit:
If you change an executable file to have the setuid bit set then when any other user runs this executable the effective user ID of the process will be switched to the user that owns the file.
The same way, if you set the gid bit, then the process will be executed under the group of the file. You have to be very careful with this feature as one can easily create a hard-to-spot security whole with it.
The purpose is usually to give the executable file the ability to write to a certain file - e.g. a log file - that the regular user cannot write to. When it runs under the owner's ID, it can write to that file.
Having the process execute under a different user id has some other side effects for example coredumps are disabled and the C runtime library ignores or deletes some environment variables.
 | |  | | chmod 4555 executable_file
chmod 2555 executable_file | |  | |  |
| Generated 8:00:37 on Apr 24, 2018 | Most recent comments
2018-04-23 22:56:40:
by marts.capitalfinance@gmail.com
in Web publishing
on Getting started with CSS:
Sir/Ma
I am a financial consultant and have a very good and reputable Provider of some bank instruments which can be monetised and discount for funding of your various project within lenders/ ... read more
|
2018-04-23 12:33:56:
by rao621
in Finances
on Well-respected bank offering Payday loans:
We specialized in Bank Guarantee {BG}, Standby Letter of Credit {SBLC}, Medium Term Notes {MTN}, Confirmable Bank Draft {CBD} as well as other financial instruments issued from AAA Rated bank suc ... read more
|
2018-04-23 05:12:56:
by anonymous
in Dating Scams
on Dating scammer Rhoda Naa from Accra, Ghana:
You mean this young woman, is a guy?
|
2018-04-23 02:29:44:
by info.iqfinanceplc@gmail.com
in Delphi
on The meaning of Runtime Error 217:
IQ FINANCE PLC provides a full financial planning service to both the commercial and domestic markets. At IQ FINANCE PLC we believe that financial planning is about two things: creating wealth and pro ... read more
|
|
2018-04-22 23:34:54:
by Stroman leon15@gmail.com
in Dating Scams
on Dating scammer Amanda Smith from Ghana:
There a young lady that lives I Ghana she go by the name mercy willson her email address is daniellasare94@gmail.com . I have talk with for a while she says so love me and want to spend the rest of he ... read more
|
2018-04-22 14:26:05:
by anonymous
in Passwords
on Need password for encrypted RAR or ZIP archive:
please tell me the pasword of sniper elite my email is muiz0016@gmail.com
|
2018-04-22 03:40:49:
by anonymous
in Male Dating Scammers
on Dating scammer jack bruno:
Que bueno que busque la direccion de este tipo... Ya me parecia raro que sienta amor por recibir un mail. Nadie en su sano juicio lo hace.
Tengan cuidado!
|
2018-04-21 20:13:37:
by anonymous
in Male Dating Scammers
on Dating scammer Josh Kelly:
cuidado con el
|
2018-04-21 14:14:58:
by [hidden]
in Male Dating Scammers
on Dating scammer Eric Wilson:
I have seen this man so many times! Could it be his is the actual victim? So many people get scammed, and not realizing that the photo you see is not the person you are talking/emailing. He could be t ... read more
|
2018-04-21 11:25:09:
by anonymous
in Male Dating Scammers
on How you recognize male scammers.:
So should I continue texting him
|
|