Cannot Delete Files in user file handler open in directory?


up vote
1
down vote
favorite
If I have an open SSH session in a server, and I am browsing a particular directory, and another user tries to delete the directory I am in, does the delete folder fail?
I am assuming yes, but the files inside the directory get deleted. I think I am also confusing file handle with something else, but any advisory is appreciated.
ssh files stream
add a comment |Â
up vote
1
down vote
favorite
If I have an open SSH session in a server, and I am browsing a particular directory, and another user tries to delete the directory I am in, does the delete folder fail?
I am assuming yes, but the files inside the directory get deleted. I think I am also confusing file handle with something else, but any advisory is appreciated.
ssh files stream
What do you mean by 'browsing'? I have opened 2 terminals. In one I didcd a
, in the second I didrm -r a
: no problem, a was removed.
â muclux
May 24 at 13:42
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
If I have an open SSH session in a server, and I am browsing a particular directory, and another user tries to delete the directory I am in, does the delete folder fail?
I am assuming yes, but the files inside the directory get deleted. I think I am also confusing file handle with something else, but any advisory is appreciated.
ssh files stream
If I have an open SSH session in a server, and I am browsing a particular directory, and another user tries to delete the directory I am in, does the delete folder fail?
I am assuming yes, but the files inside the directory get deleted. I think I am also confusing file handle with something else, but any advisory is appreciated.
ssh files stream
asked May 24 at 13:23
user833623
61
61
What do you mean by 'browsing'? I have opened 2 terminals. In one I didcd a
, in the second I didrm -r a
: no problem, a was removed.
â muclux
May 24 at 13:42
add a comment |Â
What do you mean by 'browsing'? I have opened 2 terminals. In one I didcd a
, in the second I didrm -r a
: no problem, a was removed.
â muclux
May 24 at 13:42
What do you mean by 'browsing'? I have opened 2 terminals. In one I did
cd a
, in the second I did rm -r a
: no problem, a was removed.â muclux
May 24 at 13:42
What do you mean by 'browsing'? I have opened 2 terminals. In one I did
cd a
, in the second I did rm -r a
: no problem, a was removed.â muclux
May 24 at 13:42
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
does the delete folder fail
No. Deleting is the removal of the link from the directory above + removal of the link to ".." and to ".". The directory itself remains if there are process active, or it is a current working directory.
Whenever you try to do something in that directory you will get an error notice. ls
, rm
, cd
will all fail if done to something inside that, now deleted, location.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
does the delete folder fail
No. Deleting is the removal of the link from the directory above + removal of the link to ".." and to ".". The directory itself remains if there are process active, or it is a current working directory.
Whenever you try to do something in that directory you will get an error notice. ls
, rm
, cd
will all fail if done to something inside that, now deleted, location.
add a comment |Â
up vote
0
down vote
does the delete folder fail
No. Deleting is the removal of the link from the directory above + removal of the link to ".." and to ".". The directory itself remains if there are process active, or it is a current working directory.
Whenever you try to do something in that directory you will get an error notice. ls
, rm
, cd
will all fail if done to something inside that, now deleted, location.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
does the delete folder fail
No. Deleting is the removal of the link from the directory above + removal of the link to ".." and to ".". The directory itself remains if there are process active, or it is a current working directory.
Whenever you try to do something in that directory you will get an error notice. ls
, rm
, cd
will all fail if done to something inside that, now deleted, location.
does the delete folder fail
No. Deleting is the removal of the link from the directory above + removal of the link to ".." and to ".". The directory itself remains if there are process active, or it is a current working directory.
Whenever you try to do something in that directory you will get an error notice. ls
, rm
, cd
will all fail if done to something inside that, now deleted, location.
answered May 24 at 14:50
Rinzwind
195k25374506
195k25374506
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1039836%2fcannot-delete-files-in-user-file-handler-open-in-directory%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
What do you mean by 'browsing'? I have opened 2 terminals. In one I did
cd a
, in the second I didrm -r a
: no problem, a was removed.â muclux
May 24 at 13:42