Sponsored Content
Operating Systems AIX Parent directory seems to disappear if child fails rename Post 302521275 by scriptr2be on Tuesday 10th of May 2011 06:34:34 PM
Old 05-10-2011
Parent directory seems to disappear if child fails rename

If I have a file/folder that a user does not have permission to and I try to rename it, it removes the entire parent folder. At that point it is only visible in a ls. (Not a ls -l, file, more, cd). It happens on every filesystem. This is Aix 5.3
Code:
$ cd test
$ ls -la
total 0
drwxr-xr-x    2 root     system          256 May 10 18:26 .
drwxr-xr-x    3 dell      sysadmin        256 May 10 18:26 ..
-rw-r--r--    1 root     system            0 May 10 18:26 new
 
$ mv new new.old
mv: cannot rename new to new.old:
Permission denied
$ pwd
/home/dell/test
$ ls
test
$ ls -la
./test not found
total 0
drwxr-xr-x    2 root     system          256 May 10 18:26 .
drwxr-xr-x    3 dell   sysadmin        256 May 10 18:26 ..


Last edited by jim mcnamara; 05-10-2011 at 11:44 PM.. Reason: added filename; added code tags
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

what are parent and child processes all about?

I don't follow what these are... this is what my text says... "When a process is started, a duplicate of that process is created. This new process is called the child and the process that created it is called the parent. The child process then replaces the copy for the code the parent... (1 Reply)
Discussion started by: xyyz
1 Replies

2. Filesystems, Disks and Memory

How hard can it be? ps child/parent

:( Since I'm fairly new to the scene and don't have much experience in shell programming, I decided to check out the net for a useful script or two. What I'm looking for is a script that would let me enter a PID and then show the process tree associated with it. So it would display the (grand-)... (2 Replies)
Discussion started by: velde046
2 Replies

3. UNIX for Advanced & Expert Users

Child Killing Parent

Hi all, I am writing a script which calls other third party scripts that perform numerous actions. I have no control over these scripts. My problem is, one of these scripts seems to execute and do what it is meant to do, but my calling / parent script always exits at that point. I need to... (4 Replies)
Discussion started by: mark007
4 Replies

4. UNIX for Dummies Questions & Answers

Parent/child directory permission

Hi there, I want to restrict a users account to only a subdirectory, but it does not seem to be working. For example /dir1/dir2/dir3/dir4 user A is only allowed to do things in dir4. the permission is 777. i've set the permissions to 700 on dir3, dir2, and dir1 to prevent them from... (3 Replies)
Discussion started by: newbie121
3 Replies

5. Homework & Coursework Questions

Need help with deleting childīs parent and child subprocess

1. The problem statement, all variables and given/known data: I need to make an program that in a loop creates one parent and five children with fork(). The problem i'm trying to solve is how to delete the parent and child of the childīs process. 2. Relevant commands, code, scripts,... (0 Replies)
Discussion started by: WhiteFace
0 Replies

6. Shell Programming and Scripting

forking a child process and kill its parent to show that child process has init() as its parent

Hi everyone i am very new to linux , working on bash shell. I am trying to solve the given problem 1. Create a process and then create children using fork 2. Check the Status of the application for successful running. 3. Kill all the process(threads) except parent and first child... (2 Replies)
Discussion started by: vizz_k
2 Replies

7. UNIX for Dummies Questions & Answers

parent and child directory

does anyone know how to check in an 'if' statement if a particular directory is a child directory of a particular directory? help ~ (2 Replies)
Discussion started by: ymc1g11
2 Replies

8. Shell Programming and Scripting

Parent Child directory and file details

Kindly help below command details in UNIX. 1.What is the Unix command to see parent and child directory details starting from root directory in tree structure using LS-LRT or any other way 2.What is the Unix command to see parent and child directory details starting from root directory in... (2 Replies)
Discussion started by: skp
2 Replies

9. UNIX for Beginners Questions & Answers

Rename the file name from Parent directory

Hi All, Just started learning unix and stuck into below issue. Suppose i have folder structure as below. Dir1/Dir2/Dir3/File1.msg I am looking to rename the file name from File1.msg to File2.msg but from the parent Dir1 From Dir3 i can easily run the command like mv File1.msg... (2 Replies)
Discussion started by: Gurjeet Singh
2 Replies

10. Shell Programming and Scripting

Fail Parent Script if any of the child fails

I have requirement where I need to fail parent if any one of the child process fails. Here is the code snippet for i in 1 2 3 4 5 6 7 8 9 10 do child_script $i & done wait I need to fail my main script if any one of my child process fails (8 Replies)
Discussion started by: gvkumar25
8 Replies
Info::Layer3::Dell(3pm) 				User Contributed Perl Documentation				   Info::Layer3::Dell(3pm)

NAME
SNMP::Info::Layer3::Dell - SNMP Interface to Dell Power Connect Network Devices AUTHOR
Eric Miller SYNOPSIS
# Let SNMP::Info determine the correct subclass for you. my $dell = new SNMP::Info( AutoSpecify => 1, Debug => 1, DestHost => 'myswitch', Community => 'public', Version => 1 ) or die "Can't connect to DestHost. "; my $class = $dell->class(); print "SNMP::Info determined this device to fall under subclass : $class "; DESCRIPTION
Provides abstraction to the configuration information obtainable from an Dell Power Connect device through SNMP. D-Link and the IBM BladeCenter Gigabit Ethernet Switch Module also use this module based upon MIB support. For speed or debugging purposes you can call the subclass directly, but not after determining a more specific class using the method above. my $dell = new SNMP::Info::Layer3::Dell(...); Inherited Classes SNMP::Info::Layer3 Required MIBs Dell-Vendor-MIB RADLAN-Physicaldescription-MIB RADLAN-rlInterfaces RADLAN-HWENVIROMENT Inherited Classes' MIBs See classes listed above for their required MIBs. GLOBALS
These are methods that return scalar value from SNMP $dell->os_ver() ("productIdentificationVersion") $dell->dell_id_name() ("productIdentificationDisplayName") $dell->model() Returns model type. Returns numeric from ("productIdentificationDisplayName") if available, otherwise if returns description(). $dell->vendor() Returns 'dell', 'dlink', or 'ibm' based upon the IANA enterprise number in id(). Defaults to 'dlink'. $dell->os() Returns 'dell', 'dlink', or 'ibm' based upon the IANA enterprise number in id(). Defaults to 'dlink'. Overrides $dell->serial() Returns serial number. Returns ("rlPhdUnitGenParamSerialNum") if available, otherwise uses the Layer3 serial method. Globals imported from SNMP::Info::Layer3 See documentation in "GLOBALS" in SNMP::Info::Layer3 for details. TABLE METHODS
These are methods that return tables of information in the form of a reference to a hash. RADLAN Interface Table ("swIfTable") $dell->dell_duplex_admin() ("swIfDuplexAdminMode") $dell->dell_duplex() ("swIfDuplexOperMode") $dell->dell_tag_mode() ("swIfTaggedMode") $dell->dell_i_type() ("swIfType") $dell->dell_fc_admin() ("swIfFlowControlMode") $dell->dell_speed_admin() ("swIfSpeedAdminMode") $dell->dell_auto() ("swIfSpeedDuplexAutoNegotiation") $dell->dell_fc() ("swIfOperFlowControlMode") Overrides $dell->interfaces() Returns the map between SNMP Interface Identifier (iid) and physical port name. Uses name if available instead of description since descriptions are sometimes not unique. $dell->i_duplex_admin() Returns reference to hash of iid to current link administrative duplex setting. $dell->fw_mac() Returns reference to hash of forwarding table MAC Addresses. Some devices don't implement the "BRIDGE-MIB" forwarding table, so we use the "Q-BRIDGE-MIB" forwarding table. Fall back to the "BRIDGE-MIB" if "Q-BRIDGE-MIB" doesn't return anything. $dell->fw_port() Returns reference to hash of forwarding table entries port interface identifier (iid) Some devices don't implement the "BRIDGE-MIB" forwarding table, so we use the "Q-BRIDGE-MIB" forwarding table. Fall back to the "BRIDGE-MIB" if "Q-BRIDGE-MIB" doesn't return anything. Table Methods imported from SNMP::Info::Layer3 See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details. perl v5.12.4 2011-09-28 Info::Layer3::Dell(3pm)
All times are GMT -4. The time now is 11:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy