You are not logged in.
Pages: 1
I'm looking for advice on a new arch install (pogoplug pro). Normally in ubuntu I would not be using root and using sudo to install apps with apt-get. Is it a good or bad idea to be installing apps with root? Is it the equivalent of adding my new user to the sudoers file and just installing as my new user with sudo? I'd appreciate any tips or general advice as to best practices for managing users and applications.
Offline
Use sudo for administrative purposes (package installation, system upgrades, editing configuration files in /etc, disk partitioning...) and an ordinary user account for everything else.
asus ux303la, core i5@1.6ghz, 8 gb ram, 500gb hdd, hd4400 gpu, crux x64 with openbox
Offline
I use root during the initial setup when I'm installing tons of packages, so I don't have to keep typing sudo. once I install a DE I use my normal user and sudo.
Offline
Normally in ubuntu I would not be using root and using sudo to install apps with apt-get. Is it a good or bad idea to be installing apps with root? Is it the equivalent of adding my new user to the sudoers file and just installing as my new user with sudo?
Not sure you understand sudo,
> whoami
fsckd
> sudo whoami
Password:
root
It should not be much of a difference if you use sudo as a regular user or login as root.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
I use root during the initial setup when I'm installing tons of packages, so I don't have to keep typing sudo. once I install a DE I use my normal user and sudo.
Similar, except I don't wait until I have graphics. I make it my priority to first install sudo, then create my normal user, and add them to sudoers, before doing pretty much anything else on the machine. Xorg and a window manager can be installed from the command line by a normal user applying sudo.
Offline
+1 to /dev/zero.
Install everything essential from command line, create user, visudo to add user, reboot and login as user.
--
Neal
Registered Linux User 159445.
Offline
su works nice as well imho, constantly prefixing every command with sudo is a chore, even if your sudo setup remembers your password for a while.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
'su -' is better than 'su'. i dont know the reason,but i read somewhere in forums.
LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King
Offline
su works nice as well imho, constantly prefixing every command with sudo is a chore, even if your sudo setup remembers your password for a while.
I agree. I will usually use 'su' or 'su -', but I have also found it convenient to have:
alias _='sudo'
This leads to cryptic command sequences like this one, that for some reason tickle me.
$ swapoff -a
swapoff: Not superuser.
$ _ !!
_ swapoff -a
Password:
Offline
If I'm understanding the original question correctly, fsckd is right. Using sudo means you're running it as root. In ubuntu you have one user that has root privileges when you use sudo. In arch (and most other distros?) you have a separate root user with its own password, which you can acces from other users via sudo.
Offline
'su -' is better than 'su'. i dont know the reason,but i read somewhere in forums.
Hi hadrons123.
Adding the "-" after su is equal to "su -l" and "su --login", so you are logging in as root,
with root's environment, the current directory is changed to /root, and the shell sources
its login startup files.
If for example you want to use gedit to open files your regular user doesn't have permission on,
entering "su" and then "gedit" in the shell fails with the error "Could not connect to session bus".
"su -" and then "gedit" starts gedit ok and you can then edit files owned by root.
Offline
good info to know.thank you sonoran.
Last edited by hadrons123 (2011-12-08 07:52:27)
LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King
Offline
Pages: 1