LinuxQuestions.org
Help answer threads with 0 replies.
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 01-04-2005, 04:48 PM   #1
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
New group for special priviledges


I'm using kppp to access the internet and would like to be able to use it without having to use the root password.

I've created a new group:
Code:
# groupadd internet
to create a new group (gid=501 - should I have used the -r flag to make it a system account?)

I've tried to add myself to this group by (after reading the man page) giving the following command:
Code:
[root@localhost ~]# adduser -G internet linmix
bash: adduser: command not found
[root@localhost ~]# whereis useradd
useradd: /usr/sbin/useradd /usr/share/man/man8/useradd.8.gz
So in the end I did it using the Gnome user manager (why idnt' my command work?)

Then I tried the following:
Code:
# chown root:internet /usr/bin/kppp
# ls -l /usr/bin/ | grep kppp
lrwxrwxrwx   1 root root          13 dic 25 12:14 kppp -> consolehelper
-rwxr-xr-x   1 root root      181580 sep 30 00:53 kppplogview
... no reaction because kppp is only a link?
So I did
Code:
chown root:internet /usr/bin/consolehelper
# ls -l /usr/bin/ | grep consolehelper
<snip>
-rwxr-xr-x   1 root internet    5636 oct 20 11:15 consolehelper
<snip>
I managed to change the group, but when I try to start kppp I still need to give the root password.

What am I doing wrong and how can I give myself access to kppp without making it free to all?
 
Old 01-04-2005, 05:37 PM   #2
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X & Linux Mint
Posts: 488

Rep: Reputation: 31
Note that "useradd" is not the same as "adduser" (see your code)
To add your user to the "internet" group: perhaps you could edit your /etc/group file and append your username to the group (see also "man group")
Just a thought.
 
Old 01-06-2005, 04:48 AM   #3
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993

Original Poster
Blog Entries: 1

Rep: Reputation: 46
strangely enough "man adduser" takes me to the manpage of useradd.

ANyway, I alrady managed to add myself to the new group through the GUI user manager (see my post).

The question remains: how do I make kppp available without root priviledges to a specific number of users?
 
Old 01-06-2005, 05:53 AM   #4
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Allow the internet group access to kppp
Code:
chgrp internet /path/to/kppp
All the internet group access to /dev/modem (your may be different)
Code:
chgrp internet /dev/modem
Allow them executable access to kppp
Code:
chmod g+x /path/to/kppp
At this point, it should be donw. Although, they might need read, or even executabel access to /dev/modem, so if that doesn't wrok this this:
Code:
chmod g+r /dex/modem
Then this
[code]chmod g+x /dev/modem]
 
Old 01-06-2005, 01:44 PM   #5
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993

Original Poster
Blog Entries: 1

Rep: Reputation: 46
WOrking on it. Thnx!
 
  


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
block special and character special files s_shenbaga Linux - Newbie 4 06-23-2015 02:16 AM
User priviledges alrymala Linux - Security 5 10-23-2005 01:26 PM
File Priviledges with installpkg Eklipz Slackware 2 11-15-2004 12:14 AM
Group Admin, Group Root, or God over Group crickett Linux - General 5 07-12-2004 04:01 PM
I need to take away my root priviledges. guitargeek General 5 02-13-2003 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:20 PM.

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
Open Source Consulting | Domain Registration