General :: Normal For /etc/shadow To Change It's Timestamp?
Aug 1, 2010I noticed that file /etc/shadow changed it's timestamp.Why it is changed? Is it "normal"?
View 4 RepliesI noticed that file /etc/shadow changed it's timestamp.Why it is changed? Is it "normal"?
View 4 RepliesI have a directory containing files and symlinks to files elswhere. I make a copy of the directory like this:
cp -rp dir/* new_dir
The files in new_dir have their original timestamps, but the symlinks have the current time. touch -t does not operate on the symblink but on the files they reference. Is there a way to set the timestamp of the symlink to a time in the past?
I was wondering if anyone knows how to change the timestamps of folders recursively based on the latest timestamp found of the files in that folder.
So for example:
Code:
jon@UbuntuPanther:/media/media/MP3s/Foo Fighters/(1997-05-20) The Colour and The Shape$ ls -alF
total 55220
drwxr-xr-x 2 jon jon 4096 2010-08-30 12:34 ./
[Code]....
I'm trying to change the restrictions to some normal text files and their result is not what is expected.
For example, when I put:
chmod 000 testfile.txt
on a file that is
-rwxrwxrwx,
it instead becomes
-r--r--r--.
It doesn't matter whether I do it with a root or the owner of the file, the result is the same.
Also, putting
chmod u-rwx testfile
results in the file becoming, again,
-r--r--r--.
Also, some doesn't have any effect, such as
chmod o-r testfile.
Even if I do this, the result is the same -rwxrwxrwx.
11.2
KDE 4.3.5
I have desktop effects on and window shadows enabled. The main windows don't seem to follow this, nor does any taskbar pop-ups when you hover your mouse over them. I even set the shadow settings to high/annoying settings but I only see it on context/right-click menus.
I don't like the blue shadow because it is too light, but I can't seem to find where to change it. This seems to also apply to in-active windows as far as the size of the shadow but with a gray shadow instead. Still, if the desktop effects were effecting this, then the shadows I see should be large. Plus, desktop effects only give you one color choice with it just being darker on the active window. How to change this?
I'm using Linux Mint 8 64bit with Google Chrome Unstable (same problem with beta).When a video is playing, the time elapsed and total time stay on the screen:Is there a way to make this disappear
View 1 Replies View RelatedCannot sudo and gets this message: timestamp too far in the future. I don't have gui interface.
View 1 Replies View RelatedHow do I compare the timestamp of two files? I tried this but it doesn't work:
file1time=`stat -c %Y fil1.txt`
file2time=`stat -c %Y file2.txt`
[code]....
I printed both the time stamps, in order and it gives me
1273143480
1254144394
./script.sh: line 13: [1273143480: command not found
So basically if comparision is not working, I guess. Or if there is any other nice way than what I am doing, please let me know.
Edit: There was no space in between if, so changing it to this works:
if [ $file1time -gt $file2time ]
I want to egrep or a grep in the squid log file .. from this time 1287483952.440 to '1287483452.440, how can I do it.
View 3 Replies View RelatedI am looking for a way to print the timestamp of a directory using find command. I can do that for a file, but for a directory, it is printing the contents of the directory as well. Lets say there is a directory called doc, and there are more than one occurrences of that directory.
find . -name "doc" -type d -exec ls -l {} ;
This is printing the contents of all the files under doc directory as well.
I am using makefile to complile all C Programming files. But certain files are not getting compiled and hence its object file is not getting generated. This is happening due to files haven't been modified for a long time. It seems that compiler knows that its object file is there hence no need to complie it actually it is not.
View 14 Replies View RelatedI am just trying to print the timestamp. which is not working.
#!/bin/bash
TSTAMP= date '+%d.%m.%y-%H:%M:%S'
echo "${TSTAMP}"
It is not displaying anything. What is wrong with the above commands.
How could I change from the Netbook Launcher to a more typical desktop? The launcher is nice, but I'm bored of it. using UNR on a EEE PC 900.
View 1 Replies View RelatedI was messing with appearances and inadvertently changed my mouse pointer. Currently it's big and red, I can't figure out how or where I need to be to change the mouse pointer back to normal.
View 1 Replies View RelatedI was using GDE in my ubuntu system. But yesterday i did some thing so my ubuntu system has changed as debian. My login screen changed and i cant access "system->administration->Login window"
when i do this i am getting this error message
"GDM (GNOME Display Manager) is not running.
You might be using a different display manager, such as KDM (KDE Display Manager), CDE login (dtlogin), or xdm. If you wish to use this feature, then your system will need to be configured to use GDM instead."
How to come back to my normal original ubuntu with GNOME.
how I managed this, but somehow during a reinstall I changed the ownership of all my home stuff to root, instead of my normal username. So now nothing loads, unless I sudo it. I had to use sudo just to open firefox.
View 3 Replies View RelatedToday 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.
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 RelatedI need to manually convert an string ( like with echo ) to a DES crypt format to be inserted inside a /etc/shadow file, does anybody knows how can I do that?
Maybe there are some little tool that could handle that operation, well.. I don't know, hope someone can give me a hint on that.
I deleted root from passwd and shadow file.Can I crate a new root user?
View 1 Replies View RelatedHow to create the password hash exactly the same as in shadow file (from the command line)?
The command
openssl passwd -crypt
returns something different.
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 RelatedI 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?
Quote: select * from s_transaction Where between UNIX_TIMESTAMP('2010-06-28 15:40:00') and UNIX_TIMESTAMP('2010-06-28 16:00:00') and user_id = '15545941';
Is this the syntax correct to retrieve a particular user transaction between given time period? because "its return error check the syntax near the between"
I have an account in university on Linux machine with 10TB of free space accessible via SFTP. I would like to backup my Windows 7 x64 laptop to university. Currently I am using rsync+cygwin, but backup is pretty slow (without shadow copy) and I hate console window appearing every day on my screen when I login.
So I am looking for something like Windows Backup but with support for SFTP. Combination of tools will work too.
I have Ubuntu Netbook on my laptop. I was wondering if there is a possibility of changing it (whenever you wanted or whatever) to basic Ubuntu Desktop Environment. I remember I have disabled Netbook Launcher from the startup application list, but I didn't have a proper Ubuntu desktop, as I couldn't edit it, couldn't (or I couldn't) place any icons there.
View 5 Replies View RelatedIs there a way to log specific type of network connection with timestamp? I mean, if someone sends a mail through mail server, is there a way the server logs that connection with timestamp?
Example:
2010-03-17 14:10:12 <server>:25 <client1>:<port1>
2010-03-17 14:10:26 <server>:25 <client2>:<port2>
2010-03-17 14:13:09 <server>:25 <client3>:<port3>
2010-03-17 14:15:43 <server>:25 <client4>:<port4>
...
...
...
I want to access the timestamp field of the packet being sent or received. I am not getting clear idea as to which ioctl I should use, and how it should be used in the program. Anyone explain rough flow of the program for accessing the timestamp.
View 5 Replies View RelatedI recently hired a new tech guy to start managing our servers. In doing this I went ahead and upgraded all the servers. It has been awhile now since I sent him the details of the new server and the last time I talked to him he was joking around with one of the other clients not realizing how long it took.
I know on other server moves, my old guy could have everything setup and running in a couple days as a good amount of time is waiting for the data to copy over. I am starting to wonder if this guy is going to try and throw a huge bill at me, so I would like to know what hes doing on the server with time stamps just so I can get a idea of how much time he has been logged into the server. Does this server OS have anything like this built in?
I've implemented a python script in conky that shows my stock portfolio.But, in the output of last updated timestamp, I get a time several hours in the past. The url for fetching stock data is: [URL]This is a norwegian stock, and I also live in norway. So the timestamp is not translated to the stock market of where it came. I can't find any 'localizing' stuff in the url either.Now my question is this: The script puts the time into a variable, the varable now contains ex 11:23 Is there any way I can add 6 hours or so to this variable
View 3 Replies View Related