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
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)
:(
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT DEBIAN
snmp::info::layer3::dell
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)