LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-28-2005, 01:59 AM   #1
alma
LQ Newbie
 
Registered: Oct 2005
Location: USA
Distribution: suse 10
Posts: 29

Rep: Reputation: 15
change permission


I want to connect to the internet as a normal user, not as root.
I just couldn't manage to do that, I must be doing something wrong.
Starting kppp as normal user an error message pops up:
... make sure root has the ownership and that the SUID bit is set.

How do I give a normal user the permission to use kppp?
 
Old 10-28-2005, 02:57 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
What is the output of
ls -l `which kppp`
?


Cheers,
Tink
 
Old 10-28-2005, 05:06 AM   #3
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 31
There's a good description of the SUID bit right here on LinuxQuestions.org.

To summarise for your situation; you should execute (as root):
Code:
# chown root `which kppp`
# chmod +s `which kppp`
which will make sure that root owns the file, then set the SUID bit so that all users run it with root's priviledges. (By the way, the `which kppp` bit [note those are backticks and not regular single quotes] simply returns the full path to the kppp command, so that it can be edited like a regular file. If you know that it's located at, say, /usr/bin/kppp feel free to use that instead.)

Last edited by Dtsazza; 10-28-2005 at 05:08 AM.
 
Old 10-28-2005, 11:13 PM   #4
alma
LQ Newbie
 
Registered: Oct 2005
Location: USA
Distribution: suse 10
Posts: 29

Original Poster
Rep: Reputation: 15
Here is the output of ls -l `which kppp`:

linux:~ # ls -l `which kppp`
-rwxrwxrwx 1 root root 802852 Oct 5 2004 /opt/kde3/bin/kppp

what I found interesting is that changing permissions by right clicking on kppp icon and selecting properties>permissions and changing them the "-rwxrwxrwx" doesn't change. Is that normal?


Quote:
Originally posted by Tinkster
What is the output of
ls -l `which kppp`
?


Cheers,
Tink
The
 
Old 10-28-2005, 11:16 PM   #5
alma
LQ Newbie
 
Registered: Oct 2005
Location: USA
Distribution: suse 10
Posts: 29

Original Poster
Rep: Reputation: 15
Dtsazza,

The code solved the thing, I managed to connect with it as normal user, great! Sorry for bothering the forum with such basic things, I'm a downright newbie but linux is getting to be my new obsession, I can't resist asking for help whenever i have a problem.
Also thx for the link to the description of the SUID bit even though I can't understand a "bit" of it yet hahaha

Thanks again, you guys give folks like me a lot of confidence and strength to explore linux and call ourselves linux users..
almalaci



Quote:
Originally posted by Dtsazza
There's a good description of the SUID bit right here on LinuxQuestions.org.

To summarise for your situation; you should execute (as root):
Code:
# chown root `which kppp`
# chmod +s `which kppp`
which will make sure that root owns the file, then set the SUID bit so that all users run it with root's priviledges. (By the way, the `which kppp` bit [note those are backticks and not regular single quotes] simply returns the full path to the kppp command, so that it can be edited like a regular file. If you know that it's located at, say, /usr/bin/kppp feel free to use that instead.)
 
Old 10-28-2005, 11:17 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
If you weren't changing them as root that would be normal,
yes. And the chmod u+s `which kppp` should indeed solve
your problem ... :}


Cheers,
Tink
 
  


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
cant change directory permission? dwarf007 Linux - General 1 09-24-2004 10:35 AM
How do I change permission many at a time? akihandyman Mandriva 1 08-26-2004 11:40 PM
how to change user permission salahuddin_66 Slackware 10 04-22-2004 11:33 PM
Cannot Change File Permission dsuratman Linux - Newbie 12 11-03-2003 02:47 PM
Unable to change permission Joe Soap Linux - Newbie 9 12-31-2001 12:33 AM

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

All times are GMT -5. The time now is 08:13 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