Ubuntu :: Delete Specific Users Along With Their Files?

Jul 18, 2011

I am trying to delete specific users along with their files, these are the steps i am taking,

Quote:

sudo su -

Quote:

cat /etc/passwd

Quote:

userdel user1

userdel command not found.

I am not able to remove the specified user, Does anyone know how else to remove this user.

View 7 Replies


ADVERTISEMENT

Programming :: Delete A Specific Range Of Files?

Aug 13, 2010

I have 50 files in the following format.

fileone.0001.txt
filetwo.0002.txt
filethree.0003.txt

[code]...

View 4 Replies View Related

General :: Recursive Delete Specific Files From Sub-directories?

Mar 4, 2011

I would like to be able to recursively delete specific various files from a directory and sub-directories. For example:

Dir/
|_sub1/
|
|_ _rm *file1 *file2 *file3

[code]....

View 11 Replies View Related

Programming :: Delete All Files With Specific Word In Filename?

May 21, 2011

I need a command to find the all files which filename contains the text "SomeText" and to delete that files!From /home/movie/wp-content/uploads/this folder I have lots of files and folders .Also I need that for folders and subfolders who contains some text in folder name "someTextInFolderName"

View 13 Replies View Related

Programming :: List Specific Files And Delete Results?

Jul 8, 2011

I ran the command:

Code:

ls -ltr | head -n40

I'd like to delete all the files listed...

View 2 Replies View Related

Ubuntu :: Make Certain Files/folders Invisible To Specific Users?

Jan 7, 2011

I've got a NAS running and I'd like to somehow make some of the folders and files invisible to certain users only. For example, if I 'ls' a directory, I want to see files 'a', 'b', and 'c'. But if another user does 'ls' in the same directory, I only want them to be able to see 'a' listed.I know I can use 'chmod +700' to make certain files not able to be read/written, but the filename would still appear in a 'ls'.I know I can put certain files inside of a '.hidden' file in the folder, but then it would be hiEdit : I'd also like to mention that the users that connect to the NAS could be coming from Windows or Mac operating systems. So hopefully the solution would work for users from those systems also..

View 5 Replies View Related

General :: Shell Script To Search For Files Of Specific Extension And Delete Them All?

Mar 17, 2010

i want such a shell script or single line command to delete all the files with extension specified in script i have bash !! ex... delete all files of extension .obj

View 4 Replies View Related

General :: If Some Users Modify/delete/create Files/directories?

Oct 25, 2010

i've been wondering how do i know if some users create/modify/delete file/directory in linux, i've been using pyinotify in python script.this script like the example from the manual:

Code:
#!/usr/bin/python
import pyinotify, os, time

[code]...

View 10 Replies View Related

Ubuntu :: Permission To Upload / Delete / Edit All Files In / Home / Www / For Multiple Users?

Dec 16, 2010

I installed proftpd on my Ubuntu 10.10 install. I also run multiple websites that I want to allow ftp access to for 2 different users. The websites are located in /home/www/. This is where the guide I was following told me to put them. I also don't have a user named www.How can I give write permission to upload, delete, and edit all the files in /home/www/ for multiple users? They can connect to the ftp server and see the file, just not change them.

View 1 Replies View Related

General :: Unable To Neither Add New Users Using Command Useradd Nor Delete Existing Users Using Command Userdel

Jun 30, 2010

Im not getting able to neither add new users using command useradd nor delete existing users using command userdel. And even Im not getting able to login into any existing users except root. It was ok before. Im having this problem very recently on my linux server. Im using RHEL5.

View 9 Replies View Related

Programming :: Search A Bunch Of Files In A Specific Folder For A Specific Number?

Jul 24, 2010

I need to search a bunch of files in a specific folder for a specific number and add all the numbers together to a total sum. I use Rsync everyday, everytime I run rsync i get a logfile (rsync output) witch contains the textstring "Total bytes sent: xxxxxx".

The "xxxxx" can vary in lenght. I need to extract the "xxxxxx" from each file and add the numbers together to a total size over a week or a month. Is this possible? And I wish to only use bash. One way of doing stuff at a time my friends .

View 5 Replies View Related

Ubuntu :: Rsync --delete Doesn't Delete Superflous Files

Sep 25, 2010

I am trying to use an old box as backup server. I have tried a couple of possibilities along the lines of:

Quote:

rsync -a --delete --progress --log-file=/home/$USER/info.txt -e ssh /home /etc root@192.168.0.106:/mnt/back

The problem is it does not delete files that has been removed from my local system?
I run the command as root on the local system.

(I realize I should properly not ssh into the server as the server's root but I'm having trouble with the permissions and I want to make sure everything else works before messing around with it)

View 2 Replies View Related

Ubuntu :: Evolution - How To Delete Specific Email

Mar 2, 2011

I've got a problem with my evolution here at work, which is running on a vanilla Ubuntu 10.10 install. Yesterday we received an email from a supplier with some tiff attachments. When this email is clicked on it freezes Evolution. The further problem is that I can't even browse into the inbox folder where it is since that email is the last thing that was highlighted. What is the best method for removing a single email from the Inbox? I thought about into the .evolution/mail folder, but I wasn't sure which files to modify to solve the problem.

View 3 Replies View Related

Ubuntu :: Delete A Specific Email In Evoution Using Terminal?

Feb 18, 2010

When I click on the email, that's it - I have to end the Evolution process and go back in again. Definitely can't double click it, or right-click to delete or simply delete. It just freezes. I can't see any of the text of the email, but I can see that there is a .tiff attachment.I've poked around in the .evolution/ folders and can'tfind the right thing to delete to get rid of this specific email

View 2 Replies View Related

General :: Delete A Specific String In Vi?

Sep 16, 2009

How do i delete a specific string in vi? Suppose i want to delete only the instance "ing" occuring in a file through vi , how could i do this??

View 3 Replies View Related

Programming :: Need To Delete A Specific String

Aug 27, 2010

These must a be a question you received a lot, but I couldn't find a similar thread! It's a simple question.
I need to delete a specific string from a file. For example the specific numbers "3456" from a file. I've tried with the tr comand, using
Code:
tr -d '3456' file,
but it also deleted whichever ocurrence of 3,4,5,6 from my file. Should I use a regular expression?

View 7 Replies View Related

Ubuntu :: Can Delete These 'un-delete-able' Files In Trash?

Nov 1, 2010

I just can't stand knowing that there's a slight problem with my PC.I have roughly 12.5 Gigs of files, mostly movies that are multiple clones of a particular movie (which was an entirely different problem altogether) and I CANNOT DELETE THESE THINGS! There has to be a simple way to do it from terminal, problem is, I can't seem to find the trash directory in terminal.

View 3 Replies View Related

Ubuntu :: Restricting Users To A Specific Folder And Its Subfolders

Dec 29, 2010

I wanted to restrict users within a particular folder say /var/lib/tomcat/webapps. I want the users to see all subfolders inside webapps and work with it (edit+read but no delete). I understood that chroot is the way, and i read this [URL] community discussion, but what i understand out of it is, they are trying to give a complete working installation of ubuntu to the user within a directory which i dont want to.

View 3 Replies View Related

Ubuntu :: Bash Script To Delete/replace A Specific String Of Text?

Jun 17, 2010

What i want to do is pretty simple.I want to uncomment every line that begins with "deb" (except for deb cdrom) in /etc/apt/sources.list.I know how to do this through system > administration > software sources.I know I can gksu gedit /etc/apt/sources.list.I'd rather not do it that way.I'd rather have a script do it. It's less work, less typing, less clicking, and would work the same on every ubuntu version.

View 8 Replies View Related

General :: Delete Specific Email In Mail Queue

Jul 5, 2010

My system have problem to route mail to our mail server, some mails store to mail queue, I use the command "mailq" have the below output, can advise if I want to delete a specific mail "ofdaf8fafag8sgfas", what can I do?

o639ngDV026834 515345 Mon Jul 5 17:49 <mail1@ora-test.com>
(Deferred: Connection refused by ora-route)
ofdaf8fafag8sgfas 514345 Mon Jul 5 17:49 <mail2@ora-test.com>
(Deferred: Connection refused by ora-route)
Total requests: 36

View 5 Replies View Related

Security :: Locating Process Which Delete Some Specific File

Jun 27, 2010

On my RHEL5 system one of my key file in one specific directory gets deleted when I start my application suite (having multiple processes). Is there some way to narrow down which specific process is deleting this file?

View 8 Replies View Related

Ubuntu :: Skype Won't Delete Users

Dec 28, 2010

I allowed someone to access his Skype account on my computer (10.4).

Now I can't delete his Skype name from the login process, which is set to autofill the first alphabetical user and seems to be unchangeable in that area.

I tried deleting the software entirely, but that didn't do it. Somewhat bizarrely, the deleting the software itself did not delete any user data, and this raises security issues, ie, is the computer also holding other people's passwords?

how I can remove this guy from autofill when I turn Skype on, and how to turn autofill off on the Linux version of Skype so I don't have to refuse the next person to borrow my computer.

View 4 Replies View Related

CentOS 5 :: Lock Filesystem For Specific Users?

Aug 1, 2011

I want to lock the filesystem based on user basics, In effect only specific users should have write access. This need to done apart from normal permission setup.

In Detail:

filesystem: /app
application users: appuser1 & appuser2
Normal users: user1 user1

Required: Only app users need to have write permission over app file system, this should done apart from the normal directory permissions. The all other users can able to view the contents even though other users have write permission based on permissions.

This need to done by over ridding the normal permission setup.

View 6 Replies View Related

General :: Vsftp - Some Users See Files - Some Don't - But All Users Are In Same Group

Jan 18, 2010

When I have different people log into our ftp and browse to the same folder, some people see the files inside, some don't. all the user accounts are in the same group, which has permission to this folder. but the one user who can see the files is the owner. how can i fix it so everyone in that group who's the owner of the folder can see the files?

View 10 Replies View Related

Server :: Delete Users In Bulk?

Jan 18, 2011

Is there a way to remove users in bulk? Maybe by a range of user id numbers.

I help run a school server for our Linux class. I create temp accounts for tests and now I just want to delete them. I really should delete the old users too but the Professor likes to let them have access even after the class.

View 6 Replies View Related

Security :: [LDAP] Account To Manage/create Only Specific Users?

Oct 19, 2010

Is there a possibility in openldap to allow a user to only create/manage specific LDAP users?For example user "mailadmin" may only create/manage mail accounts in LDAP that are named like "m1342895"? Or a specific list of user accounts that are in a specific group?

View 1 Replies View Related

Fedora :: Delete Restrictions For Users' Passwords

Dec 22, 2009

I have Fedora 10 installed. I want my users to be able to use any password they want. So I edited /etc/pam.d/system-auth, the password section.
Was:

Code:
password requisite pam_cracklib.so try_first_pass retry=3
password sufficient pam_unix.so md5 shadow nullok try_first_pass use_authtok
password required pam_deny.so
Become:

[Code].....

View 2 Replies View Related

General :: Delete Multiple Users From Samba?

Jan 25, 2011

i have 3 groups on a samba server with about 30 user per group.I would like to know how to delete all the user in a group before adding new users.

View 1 Replies View Related

Server :: Samba Share Read Only For Guests / Write For Some Specific Users

Jun 19, 2011

I've been reading for a while about samba but I haven't found a solution to my problem yet.I'd like to know if, the configuration I have in mind, is possible at all ("security = user" is what I'm using now).I want a directory to be:
1) read only for guests and some UNIX users;
2) write for some other UNIX users.

The advantage of this configuration would be that every single user in my LAN (with or without a UNIX account) would be able to read the content of the shared directory Music and I (UNIX user andrea) could manage the folder directly trough samba preserving the correct owner/group and permissions on the new files/folder created.

Notes about my configuration above:
1) as it is now every user gets authenticated by samba as nobody so even I (andrea) cannot write in it;
2) commenting out the line "guest ok = yes" I can authenticate as "andrea" and write in it but guest access is not possible any longer.

View 6 Replies View Related

Server :: Accept Mails To Unknown Users And Route Specific User

Jul 31, 2009

I need to instruct sendmail to accept mails that are destined to users that are not available on my server and then forward those emails to catchall@mydomain.tld.Please remember that i don't want to forward every single mail to catchall user. I just want to forward those emails which would be destined for users that do not exist on my server.i have used define(`LUSER_RELAY', `local:catchall@d.com')but it doesn't seems to work.

View 2 Replies View Related







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