You are not logged in.

#1 2009-05-25 03:53:44

mabender
Member
Registered: 2009-05-16
Posts: 15

Program permissions for non root users

So I installed a bunch of apps under root when I was setting up a fluxbox desktop.  Now when I try to start something as another user I get a no permission error, which I figured.  What is the best way to solve this?

Offline

#2 2009-05-25 04:20:31

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: Program permissions for non root users

Depending of which apps, which files? Bunch of apps, something ... gimme a cake!:)


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#3 2009-05-25 04:25:15

mabender
Member
Registered: 2009-05-16
Posts: 15

Re: Program permissions for non root users

wvdial is the biggest problem.  it's my only way to get the net.  other than that, there's about 7 or 8 of 'em, like firefox, abiword, nedit, aterm, xarchiver, xfe, etc. Sounds like you're saying I'm gonna have to track down and change permissions on a bunch of files.

Offline

#4 2009-05-25 04:36:56

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: Program permissions for non root users

mabender wrote:

So I installed a bunch of apps under root

I'm not even sure what this means.. isn't that how apps are usually installed?

Offline

#5 2009-05-25 04:42:49

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: Program permissions for non root users

This is why it is always good to install stuff using your package manager...

Offline

#6 2009-05-25 07:31:03

mabender
Member
Registered: 2009-05-16
Posts: 15

Re: Program permissions for non root users

I did install all the programs with pacman.  I think the problem was I was logged into x and fluxbox when I installed them, as root.  I guess I'm not sure what's the best way to install programs so multiple users can access them in the desktop.  Login as root and use pacman from the command line, or login as a user and run pacman in x.

Offline

#7 2009-05-25 08:58:34

Vintendo
Member
From: Netherlands
Registered: 2008-04-21
Posts: 375
Website

Re: Program permissions for non root users

If pacman installs them any user can acces them, it doesn't matter how you start pacman.

Offline

#8 2009-05-25 11:29:46

Chokkan
Member
Registered: 2009-04-06
Posts: 129

Re: Program permissions for non root users

With wvdial, I use sudo and then I point it to a config file (wvdial.conf) in my home folder.


< Daenyth> tomkx: my girlfriend is linux
< Daenyth> srsly
< Daenyth> she loves the way I «make install»
< Daenyth> all her /dev entries are mode 7 for me

Offline

#9 2009-05-25 15:51:54

dmartins
Member
Registered: 2006-09-23
Posts: 360

Re: Program permissions for non root users

I can see wvdial needing root permissions or for your user to be in a specific group so you can access a certain device node in /dev, but the rest of the programs you listed, should just work.

What exactly is the error?
Where are you seeing it? (when running the program from a terminal, or does it pop up in a dialog box?)
How did you create your user's home directory?
What's the output from "ls -l /home"?

Offline

#10 2009-05-26 01:32:23

mabender
Member
Registered: 2009-05-16
Posts: 15

Re: Program permissions for non root users

Here's the error I'm getting when I run wvdial, all in the terminal.

--> Cannot open dev/ttyUSB0: Permission Denied

The output from /home is
drwx------ mike:users

I created the user with adduser as root.  I've tried adding all the groups with usermod , even root, to see if that would get rid of the error with no luck.  I suspect sudo and a separate wvdial.conf file will work for now.

Offline

#11 2009-05-26 01:48:31

dmartins
Member
Registered: 2006-09-23
Posts: 360

Re: Program permissions for non root users

Okay, so using "ls -l", find out which group /dev/ttyUSB0 belongs to.
Chances are, /dev/ttyUSB0 is actually a symlink to /dev/tts/USB0 and that it is owned by the uucp group. Have you added your user to that group and tried using wvdial? (After adding your user to a group you have to log out and back in for it to take effect.)

Offline

#12 2009-05-26 20:55:09

mabender
Member
Registered: 2009-05-16
Posts: 15

Re: Program permissions for non root users

Allright.  Adding the uucp group for that user worked past the first error.  Now I'm running into a problem with pppd.  I had to add a mknod /dev/ppp command to .xinitrc, but that only works as root.  I tried /etc/rc.d/rc.local but that doesn't seem to be working.  Where's the best place to put a command to run at boot as root?

Offline

#13 2009-05-26 22:27:15

Peanut
Member
From: Norway
Registered: 2009-05-24
Posts: 99

Re: Program permissions for non root users

mabender wrote:

I tried /etc/rc.d/rc.local but that doesn't seem to be working.

The file is actually /etc/rc.local, try putting your command there.

Offline

#14 2009-05-26 23:04:40

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Program permissions for non root users

Don't mknod it - just load the ppp-generic kernel module.

Offline

#15 2009-05-27 23:48:11

mabender
Member
Registered: 2009-05-16
Posts: 15

Re: Program permissions for non root users

Neither rc.local or loading ppp-generic worked.  I kept running into a pppd permissions error after wvdial initialized.  Looks like I will just use a sudo script file, which is fine for now.

Offline

#16 2009-05-28 15:32:12

Peanut
Member
From: Norway
Registered: 2009-05-24
Posts: 99

Re: Program permissions for non root users

Offline

Board footer

Powered by FluxBB