Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Disk operations customarily require root permissions for security reasons. You can use sudo if you want to do this. You can set up sudo in /etc/sudoers and do clever things, letting users have root as much or as little as you like. You can also put the dvd (I presume it's a dvd) in /etc/fstab with the 'users' or 'user' option and this might allow you to eject. Man fstab for the details. Test it and see. You might also eject using a right click in the File Manager in X.
Disk operations customarily require root permissions for security reasons. You can use sudo if you want to do this. You can set up sudo in /etc/sudoers and do clever things, letting users have root as much or as little as you like. You can also put the dvd (I presume it's a dvd) in /etc/fstab with the 'users' or 'user' option and this might allow you to eject. Man fstab for the details. Test it and see. You might also eject using a right click in the File Manager in X.
I am scared of doing bad things to my computer so i dont want my user have root permission always.
I am scared of doing bad things to my computer so i dont want my user have root permission always.
That's why you use SUDO, but beyond that, how do you think you're going to apply updates or do anything system related without admin rights? You can't do that on Windows or Mac either. All you need to do is:
Take regular backups
Use your own brain to think about what you're doing and be careful
Because eventually your system WILL die, and you'll have to restore your data; the backups are for that. And if you 'do bad things' to the point your system doesn't work, you have now learned what not to do, and can just rebuild your system.
We've all killed systems in the past, and you either have ALREADY done it, or you WILL do it. There's no third option.
I am scared of doing bad things to my computer so i dont want my user have root permission always.
Users of computers divide into three types, according to someone
Beginner: is afraid to do things in case he presses a key that breaks the whole computer.
Intermediate: Doesn't know what to do when he has pressed a key that broke his computer.
Expert: Someone who breaks other people's computers.
Get out of stage 1. The forum here helps And buy yourself a backup disk, make backups, and then you can just restore the backup if you break or wipe stuff.
Problem solved by adding suid to /usr/bin/eject, all i wanted was to eject flash drive to extend it's service time and since my main drive is nvme it's hard to write /dev/nvme0blablabla instead of /dev/sda. I dont think i would do a mistake. Thanks for everyone's replies, didn't expected to get attention this fast.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.