Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
l've got a stupid but an inteligent question??? my question is this :
hoe do l place a password on a normal file in linux.??? cos' this is
simple in windows. please note am not talking about [.htaccess or
.htpasswd ] that are used for Apache. But am asking of how l can place a
password access on the scripts or configurazione files. e.g if l have a
script called "/usr/sbin/bobgodwinx" l would like to protect it with a
password so that when l do for example " vi /usr/sbin/bobgodwinx" l
should be asked a password
bobgodwinx: this may be simple in window, but it really doesn't do a damn thing, all it does is make it so windows doesn't let people that don't know the password use the file, but anyone can pop in a boot disk and go around windows all together (including the files password)
if its sensitive data, then encryption is best, if its lots of files, encrypt the disk partition (like to get encrypted directories)
please can some make an example on how to encrypt files or directories with a key or passwd thanks. e.g l would like to encrypt /etc/samba/smb.conf with the following password 123456
can some make a command example please it's very important cos' CHMOD can't give passwd access it only gives read write and excution access. thanks
why would you want to encrypt samba.conf ?
you do realise that that would prevent samba from reading the file right ?
maybe you do not understand what encryption is ?
as for the exaple you want... that will come in the form of documentation with kgpg and gpg.
if you want to encrypt a whole disk, you will need to re-compile a 2.6.4 or above kernel and to use dm-crypt. (loop-aes is a mess, and crypto-loop is depreciated)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.