You are not logged in.

#1 2011-12-07 20:22:38

famp
Member
Registered: 2011-12-07
Posts: 1

General user advice

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

#2 2011-12-07 20:28:50

bjornoslav
Member
Registered: 2011-11-01
Posts: 137

Re: General user advice

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

#3 2011-12-07 21:50:54

bwat47
Member
Registered: 2009-10-07
Posts: 638

Re: General user advice

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

#4 2011-12-07 21:56:24

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: General user advice

famp wrote:

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

#5 2011-12-07 22:23:17

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: General user advice

bwat47 wrote:

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

#6 2011-12-07 23:02:04

HeSaid
Member
From: southwest Florida USA
Registered: 2010-07-02
Posts: 53

Re: General user advice

+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

#7 2011-12-08 00:13:34

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: General user advice

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

#8 2011-12-08 00:56:33

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: General user advice

'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

#9 2011-12-08 01:44:54

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: General user advice

.:B:. wrote:

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

#10 2011-12-08 03:53:11

kyla
Member
From: Arlington, VA
Registered: 2011-03-12
Posts: 112
Website

Re: General user advice

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

#11 2011-12-08 07:45:16

sonoran
Member
From: sonoran desert
Registered: 2009-01-12
Posts: 192

Re: General user advice

hadrons123 wrote:

'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

#12 2011-12-08 07:51:51

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: General user advice

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

Board footer

Powered by FluxBB