when i am login in as local user in redhat linux and run command echo $ PATH it is showing me :/sbin: in my path, when i dont have any access to commands like fdisk. then why it is showing me :sbin: in PATH
Asked
Active
Viewed 70 times
1
[tom@localhost ~]$ fdisk -l [tom@localhost ~]$ we can see /sbin is in path but i am not getting fdisk -l output – user577423 Mar 31 '16 at 14:20
lsfrom the command line is the /sbin folder just to make sure fdisk is in there? – Peter David Carter Mar 31 '16 at 14:50fdiskrequires root permissions, so you should try withsudo fdisk -l, that is why you have sbin in the path - to have access to the commands - not meaning you have the required rights to execute it. And you should explain a bit more what does it mean "I don't have access to commands" - do you get an error message? If yes, please let us know. – Zina Mar 31 '16 at 15:48