Why wont superuser work




















It does not do its function, but it has come of the side effects that the real cd has. And it can do nothing instead of failing when the current shell does not have a cd command.

But a program that is, seen from the operating system kernel, a shell can be much simpler than that, even only a couple of lines of code. See What is the point of the cd external command? Show 3 more comments. But: be careful, once one is root This answer is so much better than 'if you say what you're trying to accomplish. Alex Alex 1, 4 4 gold badges 20 20 silver badges 33 33 bronze badges. On the other hand, if there is no root password, or you don't know it, sudo is the only option.

Stephen Rauch 2, 10 10 gold badges 21 21 silver badges 25 25 bronze badges. So sudo cd runs with error. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.

Email Required, but never shown. The Overflow Blog. Does ES6 make JavaScript frameworks obsolete? Podcast Do polyglots have an edge when it comes to mastering programming Active Oldest Votes.

Improve this answer. Hauke Laging Hauke Laging 78k 17 17 gold badges silver badges bronze badges. It works! Thank you! This option is ignored if the option --login is specified. Akhil Akhil 8 8 silver badges 23 23 bronze badges.

Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.

Best 4K TVs. Best iPhone 13 Cases. Best Tech Gifts for Kids Aged Awesome PC Accessories. Best Linux Laptops. Best Bluetooth Trackers. Best eReaders. Best Gaming Monitors. Best Android Phones. Browse All News Articles. Prey Predator Prequel Hulu. Window 11 SE Downgrade. Disney Plu TikTok. Windows 11 Default Browser Block. Teams in Windows 11 Taskbar. Smart TVs Ads. Team Comes to Workplace by Meta. Block People Spotify. Verizon Selling PS5. Windows 11 SE Explained. Find Downloaded Files on an iPhone.

Use Your iPhone as a Webcam. Hide Private Photos on iPhone. Take Screenshot by Tapping Back of iPhone. Should You Upgrade to Windows 11? Handy for going root from a regular user account. Sign up to join this community. The best answers are voted up and rise to the top.

Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Ask Question. Asked 10 years, 5 months ago. Active 9 months ago. Viewed k times. Improve this question.

Petruza Petruza 2, 5 5 gold badges 27 27 silver badges 46 46 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. It just has no password. FakeName This is the most hilarious backdoor! If you can run sudo su , what in the world is the point of disabling su then? KolobCanyon - The point isn't really to "disable su ", it's to prevent root login. By disallowing login as root , you prevent a bunch of possible security issues. Not allowing someone who can sudo to su is kind of silly.

Basically, su just changes the current user-id, and executes a command a shell, if not specified.



0コメント

  • 1000 / 1000