0
I've got a question for you today my dear Linux friends. I'm a windows user primarily. I use it for my work, watching movies, listening to music, playing games, browsing the net and everything else that comes to my mind.
I've got used to installing new software and development libraries in Linux. It's pretty handy. But one thing I still can't accustom to is this terribly irritating file management. I want to create new directory in let's say /opt folder where I've got lampp for web stuff located but *beep* I can't and same for the files but as you may guess I save files pretty often while making changes in code and it starts to be really problematic to always do things like that in the terminal and all the time typing the password(yes I know I can change sudoers to avoid that with visudo).
I can:
- Change the permissions for the directory I want
- Login permanently as root onto the system (like it works in Windows when on account with administrative privileges) but most of the people say it's dangerous??? Well I exactly know what do I do with my system
- Run program as root with gksudo/sudo but if I run it couple of times through the day?
The question here is rather about work more specifically working with loads of files everyday: saving, removing, unpacking etc. It's pretty straightforward in Windows you just do this and there's no little angel telling you it's wrong and dangerous, it's bad and unsafe and you better don't do that!
I'd like to ask you how do you manage your system to avoid wracking the nerves while doing actions like archive unpacking, file saving or any other action that requires write privileges:
- Do you use terminal all the time and type password every time you want to do small thing?
- Or do you rather work as root in development process
- Or maybe you change the permissions for directory you want
I'd like to know what your workflow on Linux is especially in situations when frequent writing to particular directory available only to root is required. I would appreciate references to some useful tips how to setup a workspace in Linux I would be happy with. Can't life on Linux be easier?
Thanks for the clear answer. UAC seems to be more submissive because I can just disable it in few clicks and I always do. In Linux there's no way (?) to install programs wherever I want but maybe that's good and avoids unnecessary mess on the system ;) – Konrad – 2015-06-29T22:22:04.123
You can disable the password prompt on linux just the same-- You lose the same amount of security, and I recommend you do neither. If you are frequently being bothered by sudo or UAC, then the problem is usually your workflow. And yes, you can install programs wherever you want. Usually, programs can be installed either system-wide or for your own user. Things like Apache, MySQL, PHP, etc. can all be installed inside of your user folder, running under your user account. – Darth Android – 2015-06-30T02:54:11.053
Says the guy who never had a command prompt open literally running as NT AUTHORITY\SYSTEM. – Joshua – 2019-04-01T15:43:43.067
That's no different than
sudo -s
from a standard user shell - Your login session is not running asNT AUTHORITY\SYSTEM
, you just have a shell open with root access. And honestly, if you have a shell open to perform commands as the SYSTEM user, almost without exception you're doing something wrong. – Darth Android – 2019-04-08T20:04:01.330