LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-13-2004, 08:45 AM   #1
ganja_guru
Member
 
Registered: Dec 2003
Location: Chennai, India
Distribution: Arch Linux 0.7
Posts: 393

Rep: Reputation: 30
need to make everything work with user access


after reading a lot of posts, ive become paranoid about logging in as root and doing everyday tasks. i tried adding a user using 'adduser' and logged in successfully, but none of the programs, including 'startx' work...i know this will work if i change the permissions of the /usr/X11R6/bin/startx binary, but damn...do i have to do that for every program out there if i want to log in as a user?

please help...i dont know where to start and have a very vague understanding of chmod chown chgrp, etc.
even after i RTFM
what im looking to achieve is something like a ubuntu setup where i can do everything as a normal user an d 'sudo root' is required only when i have to install progz or change admin files..

thanks in advance..i might not reply immediately cause my linux box is at my relatives place.
 
Old 12-13-2004, 09:57 AM   #2
ganja_guru
Member
 
Registered: Dec 2003
Location: Chennai, India
Distribution: Arch Linux 0.7
Posts: 393

Original Poster
Rep: Reputation: 30
come on you guys..im sure all of you have working set ups with user access..HELP!
 
Old 12-13-2004, 10:07 AM   #3
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
hey,

Delete the user you made, and re-make it using the -D switch for useradd. This creates the user's home and puts all the default files needed in there. Do so like this...

useradd -D username

That should do it...
 
Old 12-13-2004, 10:09 AM   #4
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
oh, and afte you make the user, make a password for it (as root) like this...

passwd username <enter>

it'll prompt you for the password, then the confirmation...

Good luck...
 
Old 12-13-2004, 10:22 AM   #5
ganja_guru
Member
 
Registered: Dec 2003
Location: Chennai, India
Distribution: Arch Linux 0.7
Posts: 393

Original Poster
Rep: Reputation: 30
thanx for the reply...

tried

useradd -D abcd

unfortunately the command doesnt work and i just get the help output...

$useradd -D abcd
usage: useradd [-u uid [-o]] [-g group] [-G group,...]
[-d home] [-s shell] [-c comment] [-m [-k template]]
[-f inactive] [-e expire ] [-p passwd] name
useradd -D [-g group] [-b base] [-s shell]
[-f inactive] [-e expire

and then it returns back to a prompt..'-d' doesnt work either..
 
Old 12-13-2004, 10:28 AM   #6
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
Oops, my bad. The -D switch jsut shows what the default settings for new users are. ..

Just do, as root,

useradd username

and nothing else. This will create the new user, put a folder for the user in /home, and out all the neccesary files in said folder. Now you're good to go, and if it's not 4:20 yet you can then give this new user a passwd with, as root,

passwd username

and follow prompts...

Good luck, now go enjoy one...;-)
 
Old 12-13-2004, 10:56 AM   #7
ganja_guru
Member
 
Registered: Dec 2003
Location: Chennai, India
Distribution: Arch Linux 0.7
Posts: 393

Original Poster
Rep: Reputation: 30
yeah...like i said ive already done that..but i cant even startx if i login with that created user (cause of permissions)..nor can i use any program..what i need is to set permissions such that everything is executable for the user and im only prompted for the root pass when i need to install a package or change system files...

Last edited by ganja_guru; 12-13-2004 at 11:11 AM.
 
Old 12-13-2004, 11:50 AM   #8
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
Sorry man, I tried every option I could think of and I can't get it to work either.

I don't get it, I got this to work on my Mandrake box...what did I do different?

Hopefully somebody else chimes in and shows us the light, cuz I'm out of ideas...

Sorry to be of so little help....
 
Old 12-13-2004, 06:54 PM   #9
ganja_guru
Member
 
Registered: Dec 2003
Location: Chennai, India
Distribution: Arch Linux 0.7
Posts: 393

Original Poster
Rep: Reputation: 30
hey no problem...thanx anyway!
 
Old 12-13-2004, 11:23 PM   #10
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
make sure that /usr/X11R6/bin/startx is set as group of users or that everybody has +x access
you can do this by
Code:
ls -l /usr/X11R6/bin/startx
if it's incorrect, change it
also, can you do basic commands such as ls, cp, mv, etc?
 
Old 12-13-2004, 11:51 PM   #11
ddu_
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 114

Rep: Reputation: 16
Why couldn't you just add the user to /etc/sudoers (do this using the visudo command as root).

This way, you'd be able to sudo any commands that require "higher" permissions.
 
Old 12-14-2004, 07:41 AM   #12
sharper
Member
 
Registered: Aug 2002
Location: MN USA
Distribution: slakware 9.0
Posts: 121

Rep: Reputation: 15
If you're using Slackware there is a "adduser" script that asks all the questions plus some that are needed to add a user and set it up. I've had that work for me just fine.
 
Old 12-14-2004, 12:08 PM   #13
ganja_guru
Member
 
Registered: Dec 2003
Location: Chennai, India
Distribution: Arch Linux 0.7
Posts: 393

Original Poster
Rep: Reputation: 30
even after i chmod 777 /usr/X11R6/bin/startx and log in as the user, and try startx

i get somethine like:
failed to connect to x server.
PAM Authentication failed
Probably the user does not have console ownership
 
Old 12-14-2004, 12:22 PM   #14
ddu_
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 114

Rep: Reputation: 16
Try:

touch /var/lock/console/USERNAME
(you do this as root and with your non-root username as USERNAME)
 
Old 12-15-2004, 01:44 AM   #15
ganja_guru
Member
 
Registered: Dec 2003
Location: Chennai, India
Distribution: Arch Linux 0.7
Posts: 393

Original Poster
Rep: Reputation: 30
thanx ddu_..that removed the pam authentication problem..only thing for me it was /var/run/console/username

however x starts up until the nvidia screen flashes and then exits out again with the following error:

gnome-session failed to load libhowl..no such file or directory

i tried changine permissions of libhowl (chmod 777)...but it didnt work...any suggestions?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I lose ftp access when I disable shell access for user captainObvious Linux - General 3 11-13-2004 05:49 PM
Make A Full Access User Wolf-67 Linux - Newbie 4 10-06-2004 08:50 PM
A wierd problem( Howto make programms work under normal user) k0ljat Linux - Software 2 09-01-2004 12:11 AM
grant user access to /fat-c & copying users' preferences to another user n0x Linux - Newbie 1 07-04-2004 12:04 AM
getting access denied , when trying to access camera as normal user bennythepitbull Linux - Hardware 2 11-04-2003 02:30 AM


All times are GMT -5. The time now is 06:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration