You are not logged in.

#1 2010-11-15 20:42:03

ManBlue
Member
From: Virginia, USA
Registered: 2010-09-02
Posts: 26

[SOLVED] Always having to sudo

Greetings

I guess I've had Arch running for a couple months now and I think I've read the Beginners' Guide correctly, but I'm not sure I need to keep sudo'ing everything. I can open the applications I've installed just fine, but when it comes time to save a file or setting I'm given every manner of message box pretty much resulting in "NO". When I open xterm and "sudo the app name I can save things. It makes the menu useless for most apps. The stupidity of running everything root have been hammered in just fine, but how will I get anything done?  I'm using Openbox and putting sudo or gksu in the command sections of the menu config wont work or prompt for password.

What could I have missed please.

Last edited by ManBlue (2010-11-16 01:24:35)


Arch 64bit | OpenBox | Registered Linux User #526935

Offline

#2 2010-11-15 21:13:54

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: [SOLVED] Always having to sudo

Perhaps the permissions on your home directory are borked

ls -l /home

Last edited by skunktrader (2010-11-15 21:15:06)

Offline

#3 2010-11-15 23:16:48

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: [SOLVED] Always having to sudo

It sounds like you've messed up your permissions by running things as root. It might be really easy to fix (might be /home/whatever/ itself) or it might be lots of different files and directories with bad permissions (which is an utter pain to fix).

Offline

#4 2010-11-15 23:23:14

filoktetes
Member
From: Skien, Norway
Registered: 2003-12-29
Posts: 287

Re: [SOLVED] Always having to sudo

Yes, I woudl have tried

sudo chmod -R <username>:users /home/username

and if that doesn't fix it, something serious is
wrong...

Offline

#5 2010-11-15 23:38:59

ikamusume
Member
Registered: 2010-11-15
Posts: 7

Re: [SOLVED] Always having to sudo

Barrucadu wrote:

It sounds like you've messed up your permissions by running things as root. It might be really easy to fix (might be /home/whatever/ itself) or it might be lots of different files and directories with bad permissions (which is an utter pain to fix).

As long as it's only his home directory (which it should be), a quick find . with xargs is going to help, since you don't really want anything owned by other users in your ~/.


yakui 2.6.36-ARCH x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3600+ AuthenticAMD GNU/Linux
suika 2.6.32-lts i686 Intel(R) Atom(TM) CPU N270 @ 1.60GHz GenuineIntel GNU/Linux
Nokia-N900 2.6.28.10power46 armv7l

Offline

#6 2010-11-16 01:12:45

ManBlue
Member
From: Virginia, USA
Registered: 2010-09-02
Posts: 26

Re: [SOLVED] Always having to sudo

ls -l /home returns

total 4
drwxrwx--- 47 cory users 4096 Nov 15 20:07 cory

sudo chmod -R cory:users /home/cory returns

 chmod: invalid mode: `cory:users'
Try `chmod --help' for more information.

did I enter the last command wrong filoktetes?


Arch 64bit | OpenBox | Registered Linux User #526935

Offline

#7 2010-11-16 01:14:21

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: [SOLVED] Always having to sudo

use chown, not chmod

Offline

#8 2010-11-16 01:23:57

ManBlue
Member
From: Virginia, USA
Registered: 2010-09-02
Posts: 26

Re: [SOLVED] Always having to sudo

Thank you thestinger, that did the trick for the saves!


Arch 64bit | OpenBox | Registered Linux User #526935

Offline

Board footer

Powered by FluxBB