Ubuntu :: Check Last User On File Open?
Jun 22, 2011
I know there's no direct way to do this. But can someone please suggest how I'm able to check the last user that opened a file?eg; vi test.txtThe last user that accessed test.txtI know last access/mod/change time can be displayed.Also lsof won't do anything as the script I'll be writing won't necessarily be running when the user has already closed the file
View 4 Replies
ADVERTISEMENT
Jul 30, 2010
How can I check and set who can view or open a given folder or file?
View 1 Replies
View Related
Sep 1, 2011
A non techie friend has helped an even less techie friend by contacting me by email to discuss an ailing laptop. A few emails were exchanged, with more details, and it was not looking good because it seemed that suddenly the CD drive was not responding, nor any USB devices, the wireless icon was gone, but Ubuntu still seemed to work (for now), with wired ethernet also working. I was struggling to think of what could be done, with the favourite routes of Live CD and Live USB apparently gone.
After a few more hours - another email: 'It's now working! After so many reboots it checked disc for errors and repaired itself! Is there some way of doing that when needed anyway?'I see there is 'Disk Utility', and this would presumably fit the bill, but how does it do checks and repair when the damaged file system is being run, and is currently *mounted*? I thought utilities like fsck(?) could only be run on unmounted file systems? Have I misunderstood the disk utility fs check repair function? And anyway, what might be a good answer to my (nontechie) friend's question 'After so many reboots it checked disc for errors and repaired itself! Is there some way of doing that when needed anyway?'
For the record: (quote) It is a toshiba EA60-155 Model number PSA67E-00300C8J. He put in extra ram to install ubuntu. He thinks he may have deleted something! There is a 'trash' file on his USB drive with loads of stuff in it and he doesn't know how or why but because it won't now read the drive on her laptop we cant replace it! (end quote)
View 3 Replies
View Related
May 16, 2011
Last weekend i have increased the open file size (ulimit -n) for the application user id i have update the limits.conf file with necessary inputs restarted the service and the server as well, when i check the ulimit value for the specific user by switching user from other user it shows the new value (10240) but if i login directly using the application id the ulimit value shows as 1024 which one is the default one.
View 6 Replies
View Related
May 30, 2010
is there a Terminal command to open a Target file (same as the one opens when you want to upload a file), let user choose the file and when he clicks open, be able to save his choice?for example:echo "Choose source file"--> command needed to browseand then open or save path to that file
View 1 Replies
View Related
Aug 22, 2010
I always have a problem in simple user mode when I insert a USB key. Can't mount, can't open with file manager. I'm obliged to open a simultaneous root session, to do what I want to manage the usb key.
In my user manager, I don't know wich group I have to add to this simple user (it's me) so I am allowed to manage the usb key.
View 6 Replies
View Related
Sep 8, 2010
Is it possible to check if a particular port is open for a particular ip in the terminal?
View 4 Replies
View Related
Mar 1, 2010
How can check that I have full permissions on anything should I set my self as root? There are a lot of files it said your not the owner so you can't change but if I'm not the owner then who is?
View 9 Replies
View Related
Jul 8, 2010
How do check the programs that the actual user of the computer installed. I do not care at all about the default programs that came with your distro of Linux, I only want the user installed programs.
View 3 Replies
View Related
Nov 20, 2010
Ubuntu server, no GUI installed; two partitions: OS and user.How can I check the status of the user partition? E.g. Free space, directory, etc
View 2 Replies
View Related
Mar 4, 2010
Im running open office 3.0 and in ubuntu 8.10 32bit. cant get spell chect to work at all....
View 3 Replies
View Related
May 4, 2010
Normally I use 'netstat -an' to determine if a daemon is listening on a specific port. The excerpt of this command below doesn't list things like vnc (5900) on ipv4. It does however show it on ipv6. My issue is I want to know how to determine if it is indeed listening on ipv4 as would normally be seen with 0.0.0.0:5900. It would appear that all ipv4 ports are internally being redirected to ipv6. Of course this does simplify things, but it also leaves me unable to reliably determine the ipv4 listening status. How I can tell at a glance if a specific ipv4 port is being listened on? Is there a way to force netstat to list the ipv4 listens specifically?
Code:
art@eee1:/proc/sys/net/ipv6$ netstat -an
Active Internet connections (servers and established) .....
View 1 Replies
View Related
Feb 1, 2011
Running Maverick on my desktop. Had a strange happening sometime last night. I generally leave the computer on all the time. When I got up this morning, I saw that my computer had rebooted and it said that it wanted to check for disc errors and that there was a problem with /home It checked until about 70%, at which point it stopped advancing for a half hour, so I did a hard reboot and choose "I"gnore when I got the message again.
The computer booted fine. The disc manager gui seemed to think my hard drive is fine, but I didn't do the full, slow check. My hard drive is about a month old. When I opened "open office" there as a document to recover, indicating that the thing did in fact crash sometime last night. The next odd thing- my "Opera" web browser doesn't open the browser. The command it is calling up is "/usr/bin/opera %U" Doesn't do anything, nothing shows up as running in the status monitor. Rebooting doesn't change anything with opera, and I still get the request to do a disc scan and to try to fix errors.
I uninstalled and reinstalled the latest version of opera. I uninstalled that and installed an earlier version of opera. Then, I reinstalled the latest version of opera. In terminal, typing "opera" gives me the message: Could not initialize Opera. Typing "sudo opera" opens Opera. Using the icon to open opera still points to the same place, and still doesn't work. So, here are my questions:
1- How do I get a logfile of the crash that happened last night?
2- How do I figure out if there is a problem with the /home folder or a problem otherwise with my hard disc? How do I fix that?
3- Where would I point the "opera" icon so it opens normally?
4- Is there any way to recover the information that I previously had in Opera, such as passwords? I used "my opera" to recover my latest bookmarks, but that doesn't save passwords. I'm thinking maybe those files are still around, even though I uninstalled and reinstalled opera.
View 3 Replies
View Related
Sep 16, 2009
I'm running Fedora 11 64bit on an Acer Aspire 3935, dual boot with Windows Vista. I installed three days ago and the system is supposedly fully updated. While doing some routine configuring I noticed that I am unable to access the Preference window of File Management.
I want to check the box for 'always open in browser windows', but therefore I need the Preference window. When I try to access through System > Preferences > File Management, it says starting for a few seconds and then nothing. When I try to access through Computer > Edit > Preferences, the window crashes and disappears. I suppose there are other ways to change that setting, but in any case I'd like to get the general problem solved, not only the setting changed.
View 7 Replies
View Related
Feb 22, 2010
What is the command to check all open TCP connections?
View 7 Replies
View Related
Jul 12, 2010
I want to make sure that the user www-data cannot be used to login on my system (Ubuntu Lucid). How can I find out? - is there a command I can run against this user? (traditionally run by Apache daemon)
View 3 Replies
View Related
Jul 14, 2010
tried a lot to get an answer for howo check when a user was created,but got no answer. know the command or how to check when a user was created?
View 14 Replies
View Related
Feb 25, 2009
I tried to see if my port was open but got a message saying Error: I could not see your service on 58.164.165.88 on port (80) Reason: Connection refused could someone us out here
View 2 Replies
View Related
Aug 19, 2010
I know the 'history' command give me a list of the commands I have typed into the Unix terminal.
How do I see the command history for all of the users currently logged onto the system?
View 1 Replies
View Related
Jun 14, 2010
I have searched for at least 1h for this to find but I didn't found anywhere how can I do to check for large email mail boxes. I run qmail as mail service
View 5 Replies
View Related
Aug 1, 2011
How to check quota of a user in UNIX/Linux?
View 2 Replies
View Related
Nov 28, 2010
how to do a small script that checks if what the users entered is an ip address or not? Also possible to do the same but instead of an ip address is a netmask. For example the user entered: 192.168.0.1 so its true this is an ip address, if it doesn't look like an ip address then is false And second example, the user entered: 255.255.255.0 so the script returns true, and if its not a netmask the script returns false.
View 6 Replies
View Related
Dec 16, 2009
my partitioning layout was as follows
Vista Recovery
Windows 7
GRUB
Extended
-->Fedora 12 (ext4)
so, I shrunk my recovery in Windows 7 successfully, and booted into my Fedora 12 live cd to run Gparted, and move the partitions so that the free space could go towards fedora, I did such, and then I couldn't expand the partition to my dismay. Next, I woke up this morning, tried to boot to fedora to run SSH, grub loaded, but when I tried to boot fedora, I got the "File system check failed" error, and when I tried 7, it just went to a blank screen with a single "_" in the top left-hand corner.
View 7 Replies
View Related
Oct 14, 2010
I want to be able to check the contents of a text file for a specific string and remove it from the file from the command prompt. I would basically be searching through a number of files and if a specific string is found I would like it removed automatically. pretty much a find and replace, were the replace is nothing. any one got any ideas on how you would do this. I already have the search part sorted just need to be able to remove the string I don't want from the multiple files.
View 4 Replies
View Related
May 5, 2010
i am writing a script for my ubuntu server and basically i want it to download a file that i specifically type in then take that file put it in a certain folder (note file may or may not be archived so i'd have to check for that) then add the name of that file to a text file.i know sounds strange but this is what i got so far:
Code:
#!/bin/bash
echo "-----Star of Script-----"
echo "Please enter URL:"
read URL
cd testdir
wget $URL
//extraction here + delete original archive (rar,zip,anything :S)
echo name_of_file >> list.txt
echo "-----End of Script-----"
View 6 Replies
View Related
Jan 8, 2011
One of the feature in my application involve changing of hardware setting. This require the user to be root or have administrative right.Before my application enable that feature, I want it to check whether the user is "root" or not, or whether user use "sudo" command to run the application or not, or whether the user has administrative rights or not.What are the codes or library that can do this?
NOTE: Sometimes, advanced linux user may set the user id of root to something else other than 0. So, getuid() may not be helpful in this case.
View 4 Replies
View Related
Feb 4, 2010
How do i check if a string entered by a user starts with a particular pattern or not?
View 3 Replies
View Related
May 30, 2011
i need to install vpnc in amazon ec2 fedor 8 instance. i have installed with yum install vpnc commaned. And i have placed config file in /etc/vpnc/some.conf. but it is not connecting and giving the following error.
vpnc: can't open /dev/net/tun, check that it is either device char 10 200 or (with DevFS) a symlink to ../misc/net/tun (not misc/net/tun): No such device.
View 6 Replies
View Related
Sep 24, 2009
I am trying to write a remote access module. Is there any function in linux where I can give string (password entered by user) and compare it with the actual user password stored in /etc/shadow. Since the password is stored encrypted in /etc/shadow I cannot parse and compare. So I want some method to compare if my user entered the correct password..Is there any function for that..
View 6 Replies
View Related
Dec 10, 2010
I have been searching for 90 minutes for something that I "think" should be fairly easy. I'm pretty new to Bash Scripting so I could be completely wrong. Then again it may be a weird request to even need something like this. But here it is.I have a script written to convert data from one of our software version to another. The only thing I need to add to it is a "check to make sure the user running the script is in the /tmp directory".
View 7 Replies
View Related