General :: Noticed There Was Two Files Called Passwd?
Jun 18, 2010
I was looking around the files in /etc/ to see what they were and what they said, then I noticed there was two files called passwd, which confused me a lot for a second then I noticed one of them was actually passwd-.I compared them and they only differed by one line:
< games:36:35:added by portage for gemrb:/usr/games:/bin/bash, which was in passwd but not passwd-.Should these files both exist? If yes, why, what does having both do? If no, then its safe to say I can just delete passwd-
View 2 Replies
ADVERTISEMENT
Jan 14, 2011
we know that /etc/passwd - is a replica of /etc/passwd file and acts as a backup in any damage done to /etc/passwd file..i have observed a strange thing in RHEL 5.4....for example... if /etc/passwd has 100 accounts.. then /etc/passwd - is having only 99 accounts....when i add 101 useraccount with "useradd" then /etc/passwd has 101 accounts and /etc/passwd is having the 100th account of /etc/passwd - ..when i delete /etc/passwd and recover it with /etc/passwd - from runlevel 1 the lastly created user is not having his account after recovery.. what is the solution? this is same case even with /etc/shadow and /etc/shadow -
View 2 Replies
View Related
May 11, 2011
Exactly what sequence of files are called as in the .my_profile,.profile,.vimrc,.vim. These are few files that I are there on the server. I want to know which file is called first and what sequence. Also can you point me to some links that tell exactly what are these files for.
View 1 Replies
View Related
Feb 8, 2010
When I use ls -al to show files downloaded from internet,
-rw-rw-r-- 1 427 6011 7544 Jul 20 2006 INSTALL
-rw-rw-r-- 1 427 6011 4229 Dec 9 15:36 Makefile.am
-rw-rw-r-- 1 427 6011 27893 Dec 10 17:47 Makefile.in
I can see the owner and group ids are shown because there are no corresponding entries in /etc/passwd and /etc/group respectively. I don't know much about linux and dare not to edit these files, I wonder if somebody already knows whether linux would map the owner id of files coming from other computers to the account name in /etc/passwd and display them when necessary (for example, when using ls -al)?
View 1 Replies
View Related
May 19, 2011
I am bulding my own image based on 2.6.32 kernel, I wish to add a guest user:
In a script thats invoked by the makefile, I use 'useradd' command & this updates the shadow, passwd files under /etc on the host, is it possible to tell the command to create the shadow / password under some other folder on the host? may be /tmp?
View 2 Replies
View Related
Jul 9, 2010
i got a RHEL 5.2 machine.and i noticed that the total used memory(as shown in "free" command) is 3GB higher thanthe sum of RSS size of all processes(collected using "ps aux").i know that its not suppose to be exact because RSS counts ultiple times shared memory (so actually it suppose to be higher than the used memory).the server runs apache which runs a pretty heavy php program.my suspicion is that its memory leak?
View 14 Replies
View Related
Jul 13, 2011
I feel there's a bit of a misunderstanding going on between C++ and me...My problem is that I have a deque of pointers to a class, and create objects then add them to the deque in a for loop. However, the destructor is called on the object as soon as the loop quits.
Code:
This prints:
Code:
Now, if I change the deque from deque<Test*> to deque<Test> then it works fine - I get:
Code:
However, I can't do this with my actual code, because I am creating a deque of pointers to an abstract class, so it won't let me instantiate the class. (This is all so that I can take advantage of polymorphism, and call functions on a set of similar objects without worrying what type of object I'm dealing with).
So, I suppose my question is: what is the correct way to create that deque of pointers to the abstract class? I don't seem to be barking up the right tree currently.
View 4 Replies
View Related
Jul 23, 2010
I have a script - called 'backit' - to back up files to a tarball - listed below (<backup.lst> contains files I want backed up)
#!/bin/bash
# 22/7/2010
# Backup important files
cd ~
tar cvfz .backup/backup.tar.gz -T .backup/backup.lst
cp .backup/backup.tar.gz /media/Archive/.backup
Typing 'Backit' in the shell works very well producing a backup file, <backup.tar.gz>, of 2 298 953 bytes and contains all the correct files. So far, so good! I put a line in crontab - /home/alan/bin/backit
The program runs every hour on the hour and produces the <backup.tar.gz> file. However, this file contains only some of the files and has a size of 76 762 bytes. Using "tar tvf backup.tar.gz" lists some of the files and ends with an error indicating an EOF encountered before the end of file. If the script executes correctly when typed into the shell, why does it not run to completion correctly when run by cron?
View 4 Replies
View Related
Nov 1, 2010
I have a second hard drive in my desktop and both the main dirve and second drive are 250GB. I use the second drive for backups, both manual and using back in time. The other day I noticed that the second drive was formated in FAT32. If I go to disk utility and look at the drive it says:Usage:FilesystemPartition Type:Linux (0x83)Type:FAT(32-bit version)Is this ok? I thought in Linux it should be Ext4. So far its been working fine for a while now but if I need to move my files and re format it to ext4 and move them back I would rather do it now when there is less data on the drive.
View 3 Replies
View Related
Mar 20, 2010
what are the series of files that are called when a user make copy operation from usb mass storage to hard disk?i have reached the code of the usb mass storage in linux kernel 2.6.33 and i want the exact code the make the copy how can i do that?
View 2 Replies
View Related
May 20, 2010
Well we all know that it holds passwords. But cat-ing it gives out nothing. Not even encrypted gibberish. So how exactly is a password stored in this? Is this like a device file or something?
View 4 Replies
View Related
Jan 5, 2010
If I configure a crontab like below.12 3 12 4 4 cat /etc/passwd I know that the cat command will get executed at the configured time. But where will the output of that command go?If it is something like below, then out put will be routed to /tmp/file1.12 3 12 4 4 cat /etc/passwd > /tmp/file1
View 4 Replies
View Related
Sep 18, 2010
I was doing some experiment about resource-accessing. By mistake, I executed this command,$ sudo mv /etc/passwd /etc/passwd.bakThen I could not execute any command with privilege(eg. sudo mv /etc/passwd.bak /etc/passwd). When I shut the system down, I could not boot it any more.
View 2 Replies
View Related
Dec 20, 2010
All servers mentioned below run OpenSuSE, either 10 or 11.I am currently working on a few scripts that are meant to be used as part of a continuous integration setup. I am trying to keep these scripts reasonably secure, and so I have made sure that all the servers run these scripts only as a specific user (user1) that has permissions to basically nothing else. The problem I am currently running into is that I need to start and stop tomcat as user1 but this user doesn't have permissions to the tomcat rectory (only tomcat has execute permissions). I have a temporary workaround in place while I work on the scripts (I have an SSH key in place that allows me to SSH from user1o tomcat without a password and execute my commands that way) but it is not very secure. I have tried adding the following line to /etc/sudoers:
Code:
tomcat localhost = NOPASSWD: /opt/tomcat/bin/startup.sh, /opt/tomcat/bin/shutdown.sh
but it doesn't work as I expected it to. I tried a few different syntaxes for that line,
[code]...
View 6 Replies
View Related
Aug 10, 2010
I got a user account on a linux network. But when I look in the /etc/passwd file, I don't see my username there. Where would I find my username
View 3 Replies
View Related
Apr 11, 2010
Unfortunately i lost my passwd file...so who to recover that.
View 8 Replies
View Related
Jun 25, 2011
I'm running a small network of 20 PC's (slackware), I had previously used NIS and can't really be bothered with ldap it's a bit of hassle. I do not need a centralised database just a login auth system.On the server I make a folder called /sec and symlink passwd, group and shadow into it.I export this via nfs.On the workstation I create a folder /sec, move the passwd, group and shadow file into it and then symlink them back into the /etc folder.On bootup, the rc.local mounts server /sec over the top of workstation /sec. If it fails it falls back.I wasn't sure if I could just mount /sec on the workstation and then temporarily symlink group,passwd,shadow over the top of the /etc/shadow etc
View 4 Replies
View Related
Jun 6, 2010
Is there a command for showing only the readable signs uit of /usr/bin/passwd?
View 1 Replies
View Related
May 4, 2010
i am executing the passwd command on a solaris 10 OS and every time its aborting (as shown below). how to troubleshoot this..
root@osssvr-1 # passwd ftp
New Password:
Re-enter new Password:
Abort
View 4 Replies
View Related
Jul 29, 2010
What is the equivalent of Solaris's passwd command in Linux?
View 2 Replies
View Related
Oct 15, 2010
How we can take username from the /etc/passwd which have UID more than or equal to 500.
View 3 Replies
View Related
Oct 7, 2010
I deleted root from passwd and shadow file.Can I crate a new root user?
View 1 Replies
View Related
Sep 7, 2010
Recently installed some application which screwed the default common-passwd file and has put some restrictions on the passwords which I could setThe present file looks like this
Code:
#password required pam_passwdqc.so min=disabled,8,8,8,8 passphrase=0 enforce=users
password required pam_passwdqc.so min=1,0,0,0,0 passphrase=0 enforce=none random=0
[code]...
View 1 Replies
View Related
Mar 25, 2011
How I can do a ftp connection putting the user and passwd, and I would do! Today, I need to know how can I do this, but in SFTP!
View 1 Replies
View Related
Jul 29, 2011
I have grown to like SeaMonkey on another distro. But did not see it in Debian synaptic.However searching the net I noticed Debian has Iceape, internet suite in synapticwhich as far as I can tell is a twin of SeaMonkey. So if you are looking for a complete package email etc. this is a good one. Opera is as good or better but I like to run two browsers some times when playing music or a game.
View 1 Replies
View Related
Mar 2, 2010
I havnt, intentionally, addressed this issue (not for initial want of trying), but after having given the matter up for some time, today i closed the lid and was expecting it to go to blank screen, but no it went into suspend (despite not being instructed to do so in power management), crikey i thought here comes a forced shut down and a dicey boot, but lo she woke After an initial second of smeared-up graphics and the sound of the hard disk starting to spin twice in a row, she woke.
On closing the lid again it went to blank screen, a fluke i thought, so i changed the options to suspend when lid closed in power management and tried again, and it worked, again, and again and again. Any other ppc users noticed that suspend now suddenly works?
View 4 Replies
View Related
Jul 3, 2011
I want to copy a file from an old directory to a new directory and ideally I would like that the 'mv' command itself could create the directory for me in one step...That is to say that the directory would not exist until 'mv' has been called as in:Code:mv olddirectory/file.dat newdirectory/file.datso mv would create the directory 'newdirectory' in the above call....I am not sure if this is possible however, that is to say I think it may be necessary that the directory 'newdirectory' already exists before I make the above call to mv, as when I make try the above call when 'newdirectory' doesn't exist I get the following error:Quote:mv: cannot move `test1/4215/4215-001R.fit' to `test2/test.fit': No such file or directoryso to sum up, my question is:is there some paramater for 'mv' that I can change so that it will create the new directory as well as copy the file and if not, are there other commands that might do this?
View 3 Replies
View Related
Mar 24, 2010
Profile is getting called twice for every login change. Interestingly when i use SU, it is invoked once only. how to set profile to be called only once.
View 3 Replies
View Related
Mar 9, 2011
I am having a really annoying problem here. Every time when I use my Computer while listening to music, or watching a video, I get some sort of crackling in my Audio. For example, playing a mp3 with Rhythmbox (or Banshee or Totem, doesn't matter really) while browsing the web is just horrible, every time I scroll down the page (Mouse wheel or keyboard) I get that noise. Just listening to the music while not touching the Computer works just fine. It does not seem to be CPU related, my reason being: I can max out my CPU, rendering a 3D graphic and still have crystal clear sound, but browsing down some big file-folder at the same time will distort my audio.
The same goes with games which are a bit on the high CPU side, like Nexuiz with high graphic settings: No sound problems at all. I am using my on-board sound, which lspci lists as VIA Technologies, Inc. VT1708/A [Azalia HDAC] (VIA High Definition Audio Controller) (rev 10), pure ALSA setup, no pulse/esd or anything of the like installed. Switched to unstable to see if a more up2date kernel or updated alsa would do the trick, it didn't! I am running Debian Unstable - 2.6.37-2-amd64 kernel, Gnome-Desktop. Here's what I did to make my sound work in the first place, since my squeeze didn't recognize my sound-setup out of the box:
To make my onboard sound system-wide default I created /etc/asound.conf:
# Modified as per [URL]
pcm.!default {
type hw
card VT82xx }
ctl.!default {
type hw
card VT82xx } .....
View 2 Replies
View Related
May 17, 2011
I got a new motherboard since my last one failed and this one has a Realtek RTL8168D/8111D PCI-E Gigabit on-board NIC. I noticed when I attempted to load Wheezy on her, she complained about the drivers not be listed in the Debian kernel. Is there a way I can slip in the drivers via USB or some other method so I can do a netinst of Debian on this new system?
View 1 Replies
View Related