[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



One thing that may not be clear is that I am talking about matching the
exact command line so "sudo ifconfig eth0" would be different than
"ifconfig eth1".  There are several commands that I repeatedly run using
sudo, so if the shell supported remembering them, the next time I ran
them it is ok to assume I meant to use sudo even if I didn't explicitly
specify it.  Just to be clear, this is workstation/desktop func, not
server stuff.

> Consider the "unlink" command. This will fail if a non-privileged user 
> tries to remove a non-empty directory. If root gives the same command, 
> it is likely to succeed. What I've read on the subject suggests this 
> can seriously damage a file system.
> 
> What should the shell do when you try to unlink a non-empty directory?

The normal thing: complain.  ;-)  If I had previously saved "sudo rm
-rf /tmp/*" then the next time (as a user) that I ran "rm -rf /tmp/*" it
would use sudo automatically.  This in no way implies that there is no
need for a passwd prompt, that is left up to /etc/sudoers.

Thanks,

-Jim P.





</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00607" href="msg00607.html">[ale] Sudo</a></strong>
<ul><li><em>From:</em> jimpop at yahoo.com (Jim Popovitch)</li></ul></li>
<li><strong><a name="00631" href="msg00631.html">[ale] Sudo</a></strong>
<ul><li><em>From:</em> stephen at bee.net (Stephen Cristol)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00633.html">[ale] Sunday 05-22-05 6PM RUN-AS-ROOT CHALLENGE</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00635.html">[ale] Linux Distributions</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00631.html">[ale] Sudo</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00636.html">[ale] Sudo</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00634"><strong>Date</strong></a></li>
<li><a href="threads.html#00634"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>