Why 'sudo ls *' failed where 'ls *' runs successfully in the directory which have many files on RHEL6.1
Issue
Please let me know about Error itself?
- What is the reason why 'sudo ls *' to check many files failed?
- How to avoid error when we run 'sudo ls *' to check many files?
- We also see similar error by running 'sudo rm *' , does this error occur whenever running any command with sudo to many files?
- Can we use find command to avoid this Error?
sudo find /home/user -print0 | xargs -0 sudo ls
- What error code should be expected when running sudo command?
- Please let me know about error code from ls.
Environment
- Red Hat Enterprise Linux (RHEL) 6
- sudo-1.7.4p5-5.el6.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.