FS#67245 - No root permission for ( rm /* )

Attached to Project: Arch Linux
Opened by Sanjay kumar (itzzz_sanju) - Friday, 10 July 2020, 05:44 GMT
Last edited by Jan de Groot (JGC) - Friday, 10 July 2020, 07:31 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To No-one
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

There is no root confirmation for command (rm /*)

What happened with me:-
I was in a sub directory of Desktop of arch linux. For deleting all files in that directory i typed command rm /* after enter it deleted all files from / directory without any root permision.

Kindly fix this, at there should be root permission for ( rm /* ) command.

After restart system it shows rootfs.
This task depends upon

Closed by  Jan de Groot (JGC)
Friday, 10 July 2020, 07:31 GMT
Reason for closing:  Not a bug
Comment by Jan de Groot (JGC) - Friday, 10 July 2020, 07:31 GMT
/ is owned by root with 755 permissions. When you execure rm /* as regular user, it will not delete anything because you don't have permissions to do so.

Your situation can only happen in two cases:
- your rootfs is on a filesystem that doesn't support permissions, vfat for example
- you changed the permissions on /

Also, command line utilities do what you tell them to do, if you can't live with that, you should not use the commandline.

Loading...