Ubuntu :: Manually Generate An Entry In The /etc/shadow File?

Oct 25, 2010

I'm trying to learn how to create a user account manually on the system, and I've edited the /etc/passwd and /etc/groups as well as creating a new home directory by copying /etc/skel but I'm stuck at how to generate an entry in the /etc/shadow file since it comprises of the hash and all?

View 4 Replies


ADVERTISEMENT

General :: Create Shadow Pasword Hash Manually?

Oct 14, 2010

How to create the password hash exactly the same as in shadow file (from the command line)?

The command
openssl passwd -crypt
returns something different.

View 6 Replies View Related

Ubuntu Servers :: Manually Forcing Rotation Didn't Generate Any Errors

Jan 28, 2011

I have 1 Ubuntu server acting as a gateway / proxy and a bunch of iptables rules to log packets from each of these systems. This is done to monitor internet acces. The resulting log file grows to about 80 - 100Mb on a daily basis. I tried setting up log logrotate ( through webmin as well as manually ) to rotate this log file every night at 11:00 pm. However, the file does not get rotated. when i run logrotate -d /etc/logrotate.conf everything goes through fine. i get a message saying that the file qualifies for rotation and no errors.

If i manually force the rotation ( through webmin ) it happens. However, on its own, the log file does not get rotated. I am completely stumped. I tried replicating the exact same settings that are set for syslog rotation, and still no luck. All the other log files do get rotated at the appropriate time ( i have checked in the /var/log/ directory ), but this one does not. I thought it might have been because i had some prerotate and postrotate scripts. Manually forcing rotation did not generate any errors and the scripts ran without any problems. But even then, i removed those scripts, and still no luck. this is the config file for logrotate ( in /etc/logrotate.d/bcrl )

[code]...

I updated the system just one day before this problem ( the second one ) surfaced, but i do not remember what got updated. is there any way to check?

View 3 Replies View Related

General :: Manually Generate A Fake ACPI Lid Event From A Script?

Jul 4, 2010

I'm trying to make sure that my laptop will suspend if I unplug it after the lid is already closed, and I believe that one way to accomplish this would be to simulate an ACPI lid event when the power adapter is plugged or unplugged. In order to do this, I need to find a command that will generate a fake ACPI lid event. Is there any such command?

View 1 Replies View Related

Fedora :: Generate Report Other Than Going Through All The Nagios Configuration Files And Putting It Together Manually?

Feb 23, 2010

I have an existing Nagios installation from before I started working here. It seems to be working well but my boss has just asked for a report of what servers and the associated processes/functions are being monitored. Is there any way to generate this report other than going through all the Nagios configuration files and putting it together manually?

View 3 Replies View Related

Software :: Manually Executing Entry In Nagios Checkcommands.cfg

Mar 10, 2011

First I don't know Nagios. I've been left with a fairly large(350 servers, 750 services) Nagios system installed. I've scraped and googled till I'm blue in the face. The Nagios folks have been less than helpful in that they tell me I need to figure it out myself. I've tried for four days to *figure it out myself*.

I have an entry in the checkcommands.cfg file:

# 'check_dns_external' command definition
define command{
command_name check_dns_external
command_line $USER1$/check_dns -H $HOSTNAME$ -t 60 -s 4.2.2.1 -a $HOSTADDRESS$
}

First, I don't understand what this command means and does. Next, I don't understand how to manually execute this command. I do know that the command in automatic mode has stopped working as Nagios tries to execute and I get an error message on the Service Status Types: Nagios alert page. The alert doesn't come with any regularity as to time of day or availability of resources. Apparently, this Nagios command is executing randomly. It is waking me up several times a night and several times a day as we page out alerts via email.

I'm lost. Aside from bouncing the entire Nagios stack, which is not possible right away as this is a Production system, is there any way to manually execute the offending line described above? Again, I've asked the Nagios folks and they have declined to answer.

View 5 Replies View Related

Fedora Installation :: Grub2 Bootloader - Manually Adding Entry?

May 29, 2010

I have a working Ubuntu install with the Grub2 bootloader. I need to manually add an entry to boot Fedora 13 off of sda. Sda1 is the boot partition, sda2 is LVM. None of the examples I've tried work. I do also have F13 grub installed on sda, but chainloading to it didn't do anything other than a blinking cursor.

View 5 Replies View Related

Ubuntu Servers :: XUbuntu Wireless / "iwconfig" Giving A Third Entry: Wlan0 - Cannot Manually Reboot?

Mar 20, 2011

I have recently converted my old desktop computer into a server (using the ubuntu server 10.10 install disk), installed xubuntu, and have installed the driver for my WPN111 usb antenna using ndiswrapper. I then installed wicd to connect to my home network (with a WPA2 passkey). Anyways, it works great... with one major annoyance � whenever I reboot (with "sudo reboot") the computer, the wireless configuration isn't detected at all.

Code:
$ iwconfig
lo no wireless extensions
eth0 no wireless extensions

The only time it works is when I turn my computer off and manually turn back it on... and then "iwconfig" gives me a third entry: wlan0. The wireless then (and only then) works like a charm. The problem is, I want to be able to access this server away from home, and of course in that situation I cannot manually reboot it.

View 1 Replies View Related

Debian :: How /etc/shadow File Authenticates An User ?

Feb 9, 2011

i am new to debian. I need to know after booting sequence login shell appears to get username and password. so what happens when user puts username and password ?? how this given username and password are matched with /etc/shadow file ??

my another question is what is role of /etc/pam.d/ authenticating username and password ?? does it work with shadow file or not ?

View 3 Replies View Related

General :: Shadow File Password Policy?

Oct 1, 2010

Today i was going through some of security guides written on linux .Under shadow file security following points were mentioned.1)The encrypted password stored under /etc/shadow file should have more than 14-25 characters.2)Usernames in shadow file must satisfy to all the same rules as usernames in /etc/passwd.3)password for application Username should display * if username is not locked.4)If a user is locked it should be displayed as ! as the first character in second field of shadow file.

Confusion for point 1 and 2:Now i m confused as why the encrypted password should be more than 14-25 characters.Also what rules to satisfy How to check it?Confusion for point 3 and 4:There are lot of users with * as second field i guess they are not locked but according to 4th point there are lot of users with ! as first characters.How would i check whether they are actually locked or not.I m posting the output of /etc/shadow and /etc/passwd files for the account.

View 11 Replies View Related

General :: What Encryption Does The /etc/shadow File Use For Passwords

Nov 26, 2009

I am just wondering what encryption method the shadow file uses, so that I may be able to manually change it. I ask this because I am trying to make a web page that will allow people to change their linux password via a browser.

View 4 Replies View Related

Programming :: Parsing Xml File Using Shell Script And Generate Report In A PDF File?

Jul 9, 2009

parsing xml file using shell script and generate report in a PDF file

Xml file input:

<report>
<student name="x" father name="x1" class="first" Address="xyz">
<property name="sports" value="yes"/>
<property name="drawing" value="no"/>

[code]....

View 12 Replies View Related

General :: Deleted Root From Passwd And Shadow File

Oct 7, 2010

I deleted root from passwd and shadow file.Can I crate a new root user?

View 1 Replies View Related

Security :: Shadow File Readable - MD5 Password Exposed

Jun 7, 2010

I noticed that our /etc/shadow file is readable on a patch I released for one of our in house linux boxes a while back ago. Could they use it to gain access the root account etc? Our passwords are all MD5 encrypted.

View 5 Replies View Related

Programming :: Replace A Hash In A Shadow File Not Using Passwd?

Aug 5, 2010

What is the easiest way to replace a hash in a shadow file for one particular user, not using passwd, and when the current password is unknown?

View 3 Replies View Related

OpenSUSE Multimedia :: Rip Audio From One .mp4 File And Then Generate One .mp3 File

Dec 19, 2010

So I use the following to rip audio from one .mp4 file and then generate one .mp3 file.

Code:
caleb@linux-vmp1:~> ffmpeg -i a -ab 128000 -ar 44100 01.mp3

Obviously, this takes a file named a and makes a file named 01 that is an mp3. It works great and I have used it many times. The problem is, I would like to rip the audio from several files all at once. I am sure there is a way to do it but I haven't stumbled upon the way to do it.

View 9 Replies View Related

Slackware :: Generate A .bmap File For Mkinitrd From .map File

Mar 26, 2010

I'd like to use a keymap not present in slackware "fr-dvorak-bepo" with mkinitrd because my root partition is encrypted by luks. So how can I generate a .bmap file from a classic .map file for mkinitrd ?

View 2 Replies View Related

General :: Grep All Values Other Than Encrypted Password From /etc/shadow File?

Jan 14, 2010

I would like to grep all values other than encrypted password from /etc/shadow fileFor example,each line consists of 8 fields separated with :/The only thing that I want not to print out is the contents between first : and second : (encrypted password)

View 7 Replies View Related

Server :: Adding Entries Directly In Password Shadow File

Mar 11, 2011

I am working on building a customized ISO image of a server based on linux. The thing is after the server is installed and run for the first time, three users have to be created for the various services to run properly. I want this to be automated. To achieve this what is was thinking is automatically enter the user entries in the /etc/passwd and /etc/shadow files through init scripts when the server starts for the first time after the installation. I tried creating user and assigning password in one of my machine, and the /etc/passwd and the /etc/shadow entries of this user I copied it into the other machine and tried login in on the other machine and everything worked fine. How I am trying to achieve this.

View 1 Replies View Related

Server :: Changes Happened In /etc/shadow File, When User Changing Password?

Jan 24, 2011

I want to know, how does changes happened in the encrypted password in /etc/shadow file , when user changing password . because user doesnot have access on that file

View 1 Replies View Related

Fedora Security :: Generating Password Hashes Compatible With FC11/sha-512 Shadow File?

Jul 3, 2009

I've been trying to write php or perl code to generate the sha-512 password hashes in fedora. I've been unable to do the hashing which is encoded in the shadow file on fedora core 11. Does anyone have php or perl code which provides the hashing algorithm. (All of my attempts result in the encrypted hashing being longer than 86 character -- the length that crypt says the sha-512 should be)

View 3 Replies View Related

Ubuntu :: Generate Xorg.conf File?

Jan 20, 2010

Since the computer does not have xorg.conf, can I have the computer generate that file because I need to work on it and so I need to create it. That is why it would be useful to have a xorg.conf file still.

View 5 Replies View Related

Ubuntu :: Write A Script To Generate An Html File?

May 29, 2010

I'm trying to write a script to generate an html file (complete with formatting- echo "[random formatting]" >> index.html) for all the files in the given directory. So far, it works pretty well. HOWEVER, I want the listed files to be treated as links. I'm using awk to grab the part of the filename I want, but I don't know how to do this out as it fails if there is more than one file. The HTML side would look something like this:

Code:
<li><a href="2010.05.29.html">May 29</a></li>
It all works fine up to the actual number of the day- fine with one file, fails with more than one. My code is this:
Code:
# Grabs all the files and puts them in a list with anchor text "Listed"
ls | find 2*.html | sed -e 's/^/<li><a href="/'

[Code]...

View 2 Replies View Related

Ubuntu :: How To Make Grub2 Generate A Grub.cfg File Without UUIDs?

Jul 11, 2010

I want to do everything with disk labels. My /etc/fstab is already set up for labels.How can I tell grub2 to use labels? I need it to stop using UUID for root.

View 5 Replies View Related

OpenSUSE Multimedia :: Keeps Debugging And Don't Generate The File

Apr 30, 2009

I'm having trouble with this developing tool... I dunno why but when I build my program, Lazarus compiles it, but keeps debugging and don't generate the file. Do anyone knows which may be the problem?

View 9 Replies View Related

Software :: Generate Pdf File In Hindi Using Pdflatex?

May 14, 2009

I am trying to generate pdf file in hindi using pdflatex. my tex file is having unicode hindi text. it gives me following error.

! Undefined control sequence.
<inserted text> extdevanagarivowelo
{ extdevanagariha } extdevanagarivir...
l.38 end{document}
}

View 3 Replies View Related

Fedora :: Generate Grub.conf File Automatically

Nov 16, 2009

After a kernel upgrade on my linux, my grub.conf become empty. How can I auto generate grub.conf file? I don't want to do it from scratch.

View 3 Replies View Related

Server :: Use The System-config-kickstart To Generate A Ks.cfg File?

Feb 1, 2010

I'm using RHEL 5.4 and trying to use the system-config-kickstart to generate a ks.cfg file with all the settings already appeneded. After running the "system-config-kickstart --generate ks.cfg" command, the file gets created but it's missing the firewall configuration, partition information and so on.

How can these settings also be generated with the system-config-kickstart?

View 1 Replies View Related

Red Hat :: Generate Default_smp_affinity File In /proc/irq Virtual Directory ?

Mar 16, 2010

I am using RedHat MRG on a standalone intel PC that has 8 cpus. It has 2 Quad cores. I am trying to force some specific persistent tuning on it so that the OS and IRQs are all on one CPU socket and then I can run my Application on the other CPU socket (4 CPUs) using the taskset command.

I have been reading up on this mainly at [url] and having some success. But, I have one IRQ that is not active until my application runs that I want to force it to be on CPU 4.

And so I believe I can do this by setting /proc/irq/default_smp_affinity to 10. But, I do not have such a file on my system. How can I create this file at boot time properly?

View 1 Replies View Related

Ubuntu :: Add An Entry To The Hosts File?

Jul 5, 2010

I share a computer with my brother. It runs Lucid Lynx. I want to add an entry to the hosts file that will affect him negatively. Is there a way I can add the entry, without it affecting him, like, is there a user-specific hosts file?

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved