Sponsored Content
Full Discussion: Deleting a file I don't own
Top Forums UNIX for Dummies Questions & Answers Deleting a file I don't own Post 40603 by Kelam_Magnus on Thursday 18th of September 2003 03:35:54 PM
Old 09-18-2003
/agree perderabo

I didnt think of changing the permissions on teh files and then rm them...

If you truly do have 777 on the dir... Run "ls -ld . " and post it back here... then you can simply and easily remove them...

OR at least move them to /tmp if you dont want to destroy them...
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Rename a file if I don't know its exact original name?

Hi everyone, I will be downloading a file every day with the name in this format SCA20060303_17514_IN.TXT And I need to rename it to SCA20060303_IN.TXT Where "20060303" is the current date, and the "_17514" part will always be a 5-digit number that I will NOT know beforehand. I... (9 Replies)
Discussion started by: propel
9 Replies

2. UNIX for Dummies Questions & Answers

compress/decompress don't take you back to the same file

Hi there, I have a file system.tgz. I want to make changes inside this archive but before that, I want to be sure I recompress it in the exact same format. So I did the following: me:~# # Duplicate the archive --------------------------------- me:~# cp system.tgz system.01.tgz me:~# ls -l... (4 Replies)
Discussion started by: chebarbudo
4 Replies

3. Shell Programming and Scripting

capture the last file when you don't know the all name

I have to ftp a file from a directory in Windows, I need to be able to ftp the last file that was put in the directory, the only thing I know about that file is that the 4 first digits are always the same (3520) then it is a _5(more digits), random digits, so it will be something like this... (1 Reply)
Discussion started by: rechever
1 Replies

4. Shell Programming and Scripting

Deleting files that don't contain particular text strings / more than one instance of a string

Hi all, I have a directory containing many subdirectories each named like KOG#### where # represents any digit 0-9. There are several files in each KOG#### folder but the one I care about is named like KOG####_final.fasta. I am trying to write a script to copy all of the KOG####_final.fasta... (3 Replies)
Discussion started by: kmkocot
3 Replies

5. Shell Programming and Scripting

How to copy specific files when you don't know the file name?

I hope this isn't as silly as it sounds from the title of the thread. I have software that outputs files where the name starts with a real number followed by underscore as a prefix to an input file name. These will list in the directory with the file with the smallest real number prefix as the... (5 Replies)
Discussion started by: LMHmedchem
5 Replies

6. UNIX for Advanced & Expert Users

Don't find file from foxbase 2.1.2d

Hi there, finally i'm installed Sco Foxbase 2.1.2d over my Sco Open Server 5.0.7v server. Well at this point almost is working fine, but, when i Run mi application i receive the next error: "sh: the_name_of_file": does not exist". I checked it over the Hard Disk and the file exist, the... (1 Reply)
Discussion started by: danilosevilla
1 Replies

7. Shell Programming and Scripting

Don't display file name

Hi I have a directory where i have 10 -12 files, i want to store word count in seperate file without any file name. i have written the logic which needs to be corrected filename.txt for i in /backup/temp/rajesh/12Apr2012_South *.LOG do #echo "File size of $i is" wc -l $i... (5 Replies)
Discussion started by: guddu_12
5 Replies

8. UNIX for Dummies Questions & Answers

Why I don't see the time in some file/directory?

Hi all, When doing an ls -l, why is it that I have the date and time on some of the files and directory, while others don't? :wall: Is there a way to show the date and time using a different command? OS is Linux and Solaris. Any response much appreciated. Thanks in advance. (1 Reply)
Discussion started by: newbie_01
1 Replies

9. Shell Programming and Scripting

In the script I get additional file, which I don't expect do get

I have the following script #!/bin/sh Usage () { echo "Usage: $0 <config_file>" echo "Example: ./sftp_ondemand_daily.sh /export/data/mbsesb/config/ond emand.cfg /export/data/mbsesb/config/filename.lst" exit 1 } if then Usage fi ... (6 Replies)
Discussion started by: digioleg54
6 Replies
DH_FIXPERMS(1)							     Debhelper							    DH_FIXPERMS(1)

NAME
       dh_fixperms - fix permissions of files in package build directories

SYNOPSIS
       dh_fixperms [debhelperoptions] [-Xitem]

DESCRIPTION
       dh_fixperms is a debhelper program that is responsible for setting the permissions of files and directories in package build directories to
       a sane state -- a state that complies with Debian policy.

       dh_fixperms makes all files in usr/share/doc in the package build directory (excluding files in the examples/ directory) be mode 644. It
       also changes the permissions of all man pages to mode 644. It removes group and other write permission from all files. It removes execute
       permissions from any libraries, headers, Perl modules, or desktop files that have it set. It makes all files in the standard bin and sbin
       directories, usr/games/ and etc/init.d executable (since v4). Finally, it removes the setuid and setgid bits from all files in the package.

       When the Rules-Requires-Root field has the (effective) value of binary-targets, dh_fixperms will also reset the ownership of all paths to
       "root:root".

OPTIONS
       -Xitem, --exclude item
	   Exclude files that contain item anywhere in their filename from having their permissions changed. You may use this option multiple
	   times to build up a list of things to exclude.

SEE ALSO
       debhelper(7)

       This program is a part of debhelper.

AUTHOR
       Joey Hess <joeyh@debian.org>

11.1.6ubuntu2							    2018-05-10							    DH_FIXPERMS(1)
All times are GMT -4. The time now is 06:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy