02-04-2012
Parent directory was missing write permission.Thanks!
I thought parent directory permission would not matter for determining access level for inside directory.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi ..
I am trying to deleta a file but i cant do the error i get is
rm: hs_pdref_custom_dict_PG1_out_76_out non-existent
but when i do ls it is listing the in the directory ...
please find the filed below....
-rw-r----- 1 tsta107 users 118011030 Dec 1 04:07... (13 Replies)
Discussion started by: arunkumar_mca
13 Replies
2. UNIX for Advanced & Expert Users
Version-Release number of selected component (if applicable):
==================================================================
root@server # cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 5)
root@server # uname -a
Linux server.integrityserver.net... (16 Replies)
Discussion started by: fed.linuxgossip
16 Replies
3. UNIX for Dummies Questions & Answers
I have more than 1 million files (No directories). rm -rf * did not work.
How do i delete all these files at a stretch in a single command? (9 Replies)
Discussion started by: sydney2008
9 Replies
4. Solaris
Morning all, I was running some deployment scripts on Friday night that kept failing because it prompted for a password for a user I was already sudo'd in as when trying to scp a file onto itself.
e.g.
on server 51.123.123.123 as sudo dlam
typing: scp testfile dlam@51.123.123.123:/tmp ... (5 Replies)
Discussion started by: dlam
5 Replies
5. Cybersecurity
User usrA creates dirA directory and runs chmod 777 on the directory. Can usrB issue another 777 on dirA? It appears the answer is no even if the usrA and usrB are part of the same group. I know this is a rare scenario but I just ran across it and found out that usrB receives an error when... (4 Replies)
Discussion started by: zlek131
4 Replies
6. Solaris
Hi All,
I am trying to uninstall jdk 1.5 from my Solaris 10 64 bit but some how was not successful.so tried to delete the folder of jdk from /usr but its throughing error as:
Unable to remove directory jdk: Read-only file system
Even I tried to create a dir in /usr but its not allowing me... (4 Replies)
Discussion started by: Pshah
4 Replies
7. UNIX for Dummies Questions & Answers
Hi,
My apologies if my query is already available on this forum but I am new and could not find.
I need a script to list all directories/sub directories and files with permissions/groups/owners. The script would run from home directory and should capture every directory. How do I do this?
... (4 Replies)
Discussion started by: 8709711
4 Replies
8. UNIX for Dummies Questions & Answers
I finally installed Chakra Linux and noticed whether I create or extract a file with 700, 755, 775 permissions a * sign is listed at the end of the filename:
$ ls -l bin/32
total 16440
-rwxr-xr-x 1 501 utmp 6321496 09.12.2013 04:02 bitcoind*
-rwxr-xr-x 1 501 utmp 10508613 09.12.2013 04:02... (10 Replies)
Discussion started by: Azrael
10 Replies
9. AIX
heapdump716960.1416296627.txt
heapdump716960.1416299494.txt
heapdump716960.1416302375.txt
trying to delete the above files
root@atec:/oratec/prodcomn/temp>rm heap*.*.txt
ksh: /usr/bin/rm: 0403-027 The parameter list is too long.
root@atec:/oratec/prodcomn/temp>rm heap*.txt... (2 Replies)
Discussion started by: filosophizer
2 Replies
10. Shell Programming and Scripting
Hi
My directory structure is as below.
dir1, dir2, dir3
I have the list of files to be deleted in the below path as below.
/staging/retain_for_2years/Cleanup/log $ ls -lrt
total 0
drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2
drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: prasadn
2 Replies
LEARN ABOUT DEBIAN
dpns_rename
DPNS_RENAME(3) DPNS Library Functions DPNS_RENAME(3)
NAME
dpns_rename - rename a DPNS file or directory in the name server
SYNOPSIS
#include <sys/types.h>
#include "dpns_api.h"
int dpns_rename (const char *oldpath, const char *newpath)
DESCRIPTION
dpns_rename renames a DPNS file or directory in the name server.
oldpath and newpath must be of the same type, i.e. both regular files or both directories.
If newpath exists already, it will be removed before the rename takes place. If newpath is a directory, it must be empty.
When renaming a directory, newpath must not be a descendant of oldpath, i.e. newpath must not contain a path prefix that names oldpath.
Write permission is required on both parents. If oldpath is a directory, write permission is required on it and if newpath is an existing
directory, write permission is also required on it.
If any of the parents has the sticky bit S_ISVTX set, either
the effective user ID of the requestor must match the owner ID of the file or
the effective user ID of the requestor must match the owner ID of the directory or
the file must be writable by the requestor or
the requestor must have ADMIN privilege in the Cupv database.
RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.
ERRORS
ENOENT A component of oldpath prefix does not exist or oldpath or newpath is a null pathname.
EACCES Search permission is denied on a component of the path prefixes or write permission on the parent directories is denied or
oldpath is a directory and write permission is denied on oldpath or newpath.
EFAULT oldpath or newpath is a NULL pointer.
EEXIST newpath is an existing directory and is not empty or newpath is an existing file with replicas.
ENOTDIR A component of the path prefixes is not a directory or oldpath is a directory and newpath is an existing regular file.
EISDIR newpath is a directory while oldpath is a regular file.
EINVAL newpath is a descendant of oldpath.
ENAMETOOLONG The length of oldpath or newpath exceeds CA_MAXPATHLEN or the length of a path component exceeds CA_MAXNAMELEN.
SENOSHOST Host unknown.
SENOSSERV Service unknown.
SECOMERR Communication error.
ENSNACT Name server is not running or is being shutdown.
SEE ALSO
Castor_limits(4), dpns_chdir(3), dpns_chmod(3), dpns_unlink(3), Cupvlist(1)
AUTHOR
LCG Grid Deployment Team
DPNS
$Date: 2005/06/30 08:34:03 $ DPNS_RENAME(3)