General :: Find Files Belong To User?

May 5, 2010

how do i find the files made by a user on the hole disk?

View 8 Replies


ADVERTISEMENT

Fedora X86/64bit :: Which Groups Should User Belong To

Dec 5, 2010

I've just installed Fedora 14 x64 and had a few problems. I have a GT9800 video card and after installation x wouldn't start untill I added xdriver-vesa nomodeset to the kernel line. Anyway I've just got it to the point where it will actually boot but wasn't asked to create a user - the live cd installation only asked for root user password. So I used useradd to create a user and I'm finally at the desktop. My question now before I go about installing the nvidia driver is can someone confirm which groups my user should belong to. I haven't used Fedora since FC3 so I can't remember.

View 2 Replies View Related

Red Hat / Fedora :: Fedora Shell Scripting \ "Find In Curent Folder For Files, And It Copy First File He Find With Name Gived By User?

May 18, 2011

shell scripting in Fedora14I want a script"Find in curent folder for files, and it copy first file he find with name gived by user, if name already exist then echo error message and finish"command usage " bash scriptname copyASname"

smthing like Code: #!/bin/bash
for files in /home/user/*
do

[code]....

View 1 Replies View Related

Debian :: Can't Find Orphan Files From Deleted User?

May 10, 2010

I did a cleanup on old user ids on my server several months ago. One of the user ids was 1005.. When i check the quota page on webmin, it says that userid 1005 is using 8.40 GB on the system, but I can't find those files anywhere! The home folder was deleted with the user ids, so I'm not sure what the username was to begin with.If I check the passwd file - there is no 1005 listed. So i did a find / uid 1005 and I tried a find / -nouser command.. Neither list files owned by 1005. How can I find where those 8.4 GB of files are?edit: when I do a du -sch * to find space being used.. there is only 5 folders within the /home that could have 8G in there .. (assumeing du -sch shows all files, including hidden).. du -sch * from / shows only possible location is in the /home folder

View 4 Replies View Related

Software :: Find Command For No Login User Files?

Feb 22, 2011

How to find files owned by a user who does not have an interactive shell on the system and copy them to a different location. For Eg : Files owned by UID : 86 in /sbin/nologin needs to be located.

View 4 Replies View Related

Ubuntu :: Accidentally Moved Files / User - Can't Find Any Original File

Dec 31, 2010

Initially, I was trying to get around a Nautilus log in error. Using this, I was able to log in, but I entered what seems to be a perfectly clean version of Ubuntu...with no access to my files. [URL].... Now, I can't seem to find any of my original files. Some of the commands I entered in the terminal included:

[code]...

I'm afraid that I may have deleted the files, or have moved them to another user or someplace on the drive I can't see.

View 6 Replies View Related

General :: Find/grep/wc Command To Find Matching Files - Print Filename And Word Count?

Sep 11, 2009

I am trying to do a find/grep/wc command to find matching files, print the filename and then the word count of a specific pattern per file. Here is my best (non-working) attempt so far:

wc `find . ( -name "*.as" -o -name "*.mxml" ) -exec grep -H HeightResizableList {}` ;

View 10 Replies View Related

General :: Command Line - Use Find To Find Text Files?

Jul 15, 2011

Is there a way to specify to find that I only want text files (and not binary files)? Grep has an option to exclude binary files, so I thought find probably has a similar feature, but I've been unable to find it.

View 2 Replies View Related

General :: Change All Files Belonging To One User To Another User?

Jul 20, 2011

I'm looking for a Linux command that can change ownership of all files belonging to a given user,preferably in a targeted directory, to another specified user. My dream command would look something like this. chuser -R --olduser tom --newuser jerry

This is my scenario... I have a backup file (.tgz) with user and group information preserved in it. It was taken from a web server running Apache and MySQL. The files in the backup are from across the system and contain files from several different users and several system type accounts and it is key that when restored on the new server the settings are not lost. The problem is that the users on the machine the files are being restored to don't match the ones in the backup file. For instance both machines had a MySQL user but they have different user ids and there are several user ids that existed on both machines that belong to different users. This means there is no way to sync the users on the new machine to the ones on the old machine. I can find all the users files with the find command like this...

find /decompressed-backup-dir -uid 1050
or
find /decompressed-backup-dir -user tom

If, as I suspect, there is no way to do what I want with a single command then perhaps there is a way to pipe the results of the find command to another command to handle the ownership change?

I could do this with a PHP script but there are 4GB and tens of thousands of files in the backup so I don't want to use PHP or Perl but I would be happy with a shell script that could handle it.

View 2 Replies View Related

General :: Find Setuid Files Using FIND Command?

Jan 25, 2009

I know how to search for normal files but can you let me know " How to search for 5 setuid files on the system. Also explain, for each file, why setuid mechanism is necessary for the command to function properly"

View 1 Replies View Related

General :: List/find All Regular Files In All Subdirectories Excluding Binary Files

Oct 5, 2010

I know I can do find . -type f, but that includes binary file and I couldn't find a way to exclude them with find

View 4 Replies View Related

Networking :: Do IP Addresses Belong To The Interface Or To The System

Apr 14, 2010

The subject has the big question. I've read answers both ways.The kernel has documentation that says the IP addresses belong to the system. Yet the configuration works as though they belong to the interface.Shouldn't we have it just one way and stick with it ... and make everything work that way?

If IP addresses truly belong to the system, then a command to configure an IP address should not need (and not even accept) the name of an interface. The only exceptions would be link-local addresses (which by their nature do suggest being interface specific ... and they should be autoconfigured by the kernel, anyway). Interfaces would only need to be brought up or down.

View 14 Replies View Related

General :: Find Who Created The User?

Mar 5, 2011

i want to know who created the user(this user was created 1yr ago).Is there any process or command to know who created the user and which date he was created

View 1 Replies View Related

General :: Find User Not Login?

Jun 3, 2010

In my system , there are 800 users in it , can advise if I want to find the user(s) who do not have login to the sytem over 180 days ( in the past 180days ) , what is the best way ? thx

View 4 Replies View Related

General :: Find The User Name And Password?

Feb 26, 2010

i have tried what user name and password i can think of but still no answer. i can get into root and was hoping that i could find it in there. But no luck so far

View 2 Replies View Related

Ubuntu :: Get The Window Titlebar Buttons Back To Where They Belong

May 2, 2010

This is how to get the Window Titlebar buttons in 10.04 back to where they belong:

*Install Ubuntu Tweak from [URL]

*Start the program from Programs/System tools

*Go to Desktop - Windows manager settings and switch it from Left to Right.

View 3 Replies View Related

Ubuntu :: Suddenly Flash Drives Think They Belong To Root

May 5, 2011

One day recently, when I plug in a flash drive, Xubuntu won't let me write to it unless I open my file manager as root (gksudo thunar). This happened a few weeks ago, back under 10.10; I didn't say anything because I thought the upgrade to 11.04 might fix it. But the behavior continues.If I stick a zip disk in the drive, I can write to it as normal...but a flash drive gives me read-only permission unless I open Thunar as root. I don't recall doing anything special with my system, except maybe installing MountManager (I've since removed it, but I'm still getting read-only access).

View 5 Replies View Related

General :: Find Out User Activity On System?

Feb 22, 2010

I am working on a program lets say programX which must run when the computer is not in use. I want to develop a monitoring program to monitor if there is user activity on the system so that it can stop the programX from running when the user is using the system and start programX when there is no user activity. Is there a way to determine this in linux?

View 4 Replies View Related

General :: Find The Only Particular User (usage) Of Memory Information?

Mar 29, 2011

how to find the only particular user (usage) of memory information

View 6 Replies View Related

General :: Find Out How To Load Graphic User Interface In Jaunty

May 20, 2011

I am a newbie to Jaunty, so please forgive my descrip. terminology. I am experiencing a great amount of grief with my Jaunty install. I can no longer get a login screen in Jaunty. When I try to boot normally for this install I get an unclean shutdown screen & it goes into the "checking drive" mode. I uninstalled some applications such as has to do with touchpad, remote desktop, xorg-driver-fglrx etc. I reinstalled xorg-driver-fglrx, which I later found out that I do not need. I have an AMD64 HP system with ATI graphics onboard.

I need to find out how to load graphic user interface in Jaunty. Some of the necessary files have been completely removed by me & I need to reload the repositories and update my current install.The partition is encrypted but I have been able to login with the username & password for THIS encrypted install using the "repair broken system" part of the GRUB screen.

How do I go into the terminal and load repositories, and maybe the kernel so I can do an update/upgrade? I do not know if upgrade is part of what I need to do I wanna keep my Jaunty install so I can access 50G of data that is on this install. I have made no backup of this data!!!

I am able to login to my install using my username & password after I get to the "#" prompt, (option "fix broken system" in GRUB) so I know login can be done under username of install. I just need to know what to TYPE into the terminal to restore the necessary files in the right place to make it run. (Is it called terminal at that point?)

View 9 Replies View Related

General :: Disable - Non-root Shell Command To Find If A User Account Is Enabled Or Not?

Aug 10, 2011

Is there a non-root shell command that can tell me if a user's account is disabled or not? note that there is a fine distinction between LOCKING and DISABLED:

LOCKING is where you prepend ! or * or !! to the password field of the /etc/passwd file. On Linux systems that shadow the passwords, this marker flag may be placed in /etc/shadow instead of /etc/passwd. Password locking can be done (at a shell prompt) via password -l username (as root) to lock the account of username, and the use of the option -u will unlock it.

DISABLING an account is done by setting the expiration time of the user account to some point in the past. This can be done with chage -E 0 username, which sets the expiration date to 0 days after the Unix epoch. Setting it to -1 will disable the use of the expiration date.

The effect of locking to to prevent the login process from using a supplied password to hash correctly against the saved hash (by virtue of the fact that the pre-pended marker character(s) are not valid output character(s) for the hash, thus no possible input can ever be used to generate a hash that would match it). The effect of disabling is to prevent any process from using an account because the expiration date of the account has already passed.For my situation, the use of locking is not sufficient because a user might still be able to login, e.g. using ssh authentication tokens, and processes under that user can still spawn other processes. Thus, we have accounts that are enabled or disabled, not just locked. We already know how to disable and enable the account - it requires root access and the use of chage, as shown above.To repeat my question: is there a shell command which can be run without root privileges which can output the status of this account expiration info for a given user? this is intended for use on a Red Hat Enterprise 5.4 system.The output is being returned to a java process which can then parse the output as needed, or make use of the return code.

View 2 Replies View Related

General :: Find Out How Much Time An Already Running Process Is Spending In User And Kernel Spac?

Jun 8, 2011

I am currently struggling with one of my tasks.I was asked to find a way how to determine how much time an _already running_ process is spending in user and kernel space.E.G. <some tool> <pid>[Control] + [c]<pid> spent 12.1 seconds in user and 1.52 seconds in kernel space.Does something like this exist? Basically I guess I am looking for something similar to time, except that the process is already running.So..a) Is there a tool which fulfills this task?b) Is there a way to write your own software which does the job? Is it even possible to code something I am looking for?I recently found strace -c -p <pid>, but well, this is not exactly what I was looking for.

View 3 Replies View Related

General :: Find Command When Loggin As A Normal User And Search For A File Passwd Under?

Dec 25, 2010

when loggin as a normal user and search for a file passwd under /etc. i get few errors with permission denied.how to ignore this permission denied errors.

csh hostname 109 % find . -name passwd
find: ./lvm/backup: Permission denied
find: ./lvm/archive: Permission denied

[code]....

View 4 Replies View Related

General :: Copy Files From Directory Of One User To Directory Of Another User?

Apr 15, 2011

Is it possible to copy files from directory of one user to directory of another user in linux?

View 7 Replies View Related

General :: Find MP3 Files Without ID3 Tags?

Jan 21, 2011

I have a lot of mp3 files without any ID3 tag information. This is very annoying, because my iPod does not show them correctly. My Banshee shows them as "unknown artist" and the title. I would like to find them all in a bunch to batch update them.

View 2 Replies View Related

General :: Find Duplicate Files By Name ?

Jul 24, 2010

We have a huge amount of duplicate files in a folder and I would like some pointers on to writing a bash script to create a list of the duplicate files. I've seen examples that check for the md5 sum of files... but I dont need that, the file name is enough.

View 4 Replies View Related

General :: Find Which Files Were Transferred?

Nov 30, 2010

Say someone logs into a Centos Linux box and SCPs a file from /root/ called 'textfile.dat'

Is there any way to log into the Centos Linux box, later, and see that textfile.dat was SCP'd from the box?

View 9 Replies View Related

General :: Find One Day Older Files?

May 31, 2011

I used following command to sort one day older log files

Quote:

find /opt/TimesTen/tt_transaction_log/ -name "mtsDB.log*" -mtime +1 -print

following are log files which are existing, I have to delete one day older files from this location but when use above mentioned command it won't print one day older files, as i understand "-mtime" modified time, "+1" means one day older. am i correct?

Code:

-rw-rw-rw- 1 ablddb dba 268435456 May 30 17:11 mtsDB.log126985
-rw-rw-rw- 1 ablddb dba 268435456 May 30 17:17 mtsDB.log126986
-rw-rw-rw- 1 ablddb dba 268435456 May 30 17:23 mtsDB.log126987

[code].....

How can i print one day older logfiles?

View 3 Replies View Related

General :: Find Size Of The Files?

Jun 8, 2011

To find the space occupied by files modified more than 4 years ago, i tried following.I am wondering if it is right ?

Code:

find /temp -type d ! -name ".*" -mtime +1460 | wc -l |du -sh

I tried this, but this sits there for long time (of couse the path i tried has lot of files) So i am not sure if this is right.

P.S.:

SHELL=bash
OS=RHEL5

View 9 Replies View Related

General :: Find Text Within Files?

Nov 23, 2010

find text within files? detailed at Code: man grep

View 2 Replies View Related







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