Hi,
Is there a way of executing encrypted files? I have encrpyted files using vi and crypt, but when I execute the encrypted file, it takes the contents literally (special characters, junk - encrpyted format).
Kind Regards,
Kawah (1 Reply)
Hi,
Is there a way of executing encrypted files? I have encrpyted files using vi and crypt, but when I execute the encrypted file, it takes the contents literally (special characters, junk - encrpyted format).
Kind Regards,
Kawah (4 Replies)
Can we execute an encrypted shell script .
I encrypted a shell scripts with crypt with keys and tried to execute it it gave me segmentation faul??
Can somebody answer this one please??
If we can is there any settings i need to change??
Thanks (2 Replies)
Good day all.
I want to unzip multiple files in a directory. Suppose there are two files:
test.txt.zip and test1.txt.zip
Using this command:
unzip -o -P test*.zip
results in the unzipping of the first file not second.
It gives this error:
Archive: test.txt.zip
caution: filename not... (2 Replies)
I have 2 files :-
1) f1.txt and f2.txt.Both contain some text as -
2)Now I did :
output: I got them to be equal.
3) I encrypted them using gpg and with the SAME paraphrase :-
4)Now I did :
#cmp f1.txt.gpg f2.txt.gpg
(OR)
#diff f1.txt.gpg f2.txt.gpg
output: I got them to be... (1 Reply)
Hello sir,
we are able to do :
But when I goto /bin or /usr/bin to see the code of "ls". I found it to be encrypted. So can u please tell me how to encrypt a code in such a way that the user can run it but cannot see the source code.
example:
if I have a shell script named "sample.sh" as... (5 Replies)
I need to encrypt a ".txt" file with password settings and it should decrypt the file automatoically when end user types correct password.
Can some one help me on this.
Thank you (3 Replies)
Hi Guys,
I wonder I had have a look to the cc compile options but I could be missing one but basically I'm compliling a c program where I will storing a command to connect to a database and also userid and password. The issue is that after the module is generated using a command like strings I... (14 Replies)
Is there a utility available to make such a backup? Is this idea even possible?
Thanks for the help. (5 Replies)
Discussion started by: rwh2011
5 Replies
LEARN ABOUT SUSE
passwd
PASSWD(5) Linux Programmer's Manual PASSWD(5)NAME
passwd - password file
DESCRIPTION
Passwd is a text file, that contains a list of the system's accounts, giving for each account some useful information like user ID, group
ID, home directory, shell, etc. Often, it also contains the encrypted passwords for each account. It should have general read permission
(many utilities, like ls(1) use it to map user IDs to usernames), but write access only for the superuser.
In the good old days there was no great problem with this general read permission. Everybody could read the encrypted passwords, but the
hardware was too slow to crack a well-chosen password, and moreover, the basic assumption used to be that of a friendly user-community.
These days many people run some version of the shadow password suite, where /etc/passwd has asterisks (*) instead of encrypted passwords,
and the encrypted passwords are in /etc/shadow which is readable by the superuser only.
Regardless of whether shadow passwords are used, many sysadmins use an asterisk in the encrypted password field to make sure that this user
can not authenticate him- or herself using a password. (But see the Notes below.)
If you create a new login, first put an asterisk in the password field, then use passwd(1) to set it.
There is one entry per line, and each line has the format:
account:password:UID:GID:GECOS:directory:shell
The field descriptions are:
account the name of the user on the system. It should not contain capital letters.
password the encrypted user password, an asterisk (*), or the letter 'x'. (See pwconv(8) for an explanation of 'x'.)
UID the numerical user ID.
GID the numerical primary group ID for this user.
GECOS This field is optional and only used for informational purposes. Usually, it contains the full username. GECOS means
General Electric Comprehensive Operating System, which has been renamed to GCOS when GE's large systems division was sold
to Honeywell. Dennis Ritchie has reported: "Sometimes we sent printer output or batch jobs to the GCOS machine. The gcos
field in the password file was a place to stash the information for the $IDENTcard. Not elegant."
directory the user's $HOME directory.
shell the program to run at login (if empty, use /bin/sh). If set to a nonexistent executable, the user will be unable to login
through login(1).
FILES
/etc/passwd
NOTES
If you want to create user groups, their GIDs must be equal and there must be an entry in /etc/group, or no group will exist.
If the encrypted password is set to an asterisk, the user will be unable to login using login(1), but may still login using rlogin(1), run
existing processes and initiate new ones through rsh(1), cron(8), at(1), or mail filters, etc. Trying to lock an account by simply chang-
ing the shell field yields the same result and additionally allows the use of su(1).
SEE ALSO login(1), passwd(1), su(1), getpwent(3), getpwnam(3), group(5), shadow(5)COLOPHON
This page is part of release 3.25 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 1998-01-05 PASSWD(5)