Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 6th, 2011, 09:17 AM
hosttheweb hosttheweb is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2011
Posts: 69 hosttheweb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 28 m 14 sec
Reputation Power: 2
Unhappy How to by pass admin right

I need help in configuring my vpn.
I have installed my vpn but cannot configure using GUI mode.
I have admin rights at back end..means i can configure if commands are given.
any one pls help me providing with the commands to configure VPN

Reply With Quote
  #2  
Old December 6th, 2011, 05:31 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,239 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 15 h 22 m 8 sec
Reputation Power: 4445
When I have some gui program that needs to run as root I usually just open a terminal, su to root then start the program using the command line.
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi

Reply With Quote
  #3  
Old December 7th, 2011, 06:25 AM
hosttheweb hosttheweb is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2011
Posts: 69 hosttheweb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 28 m 14 sec
Reputation Power: 2
re

installation is working fine with me..but i cannot make changes to configuration files.
It needs to be done in GUI mode i guess..but again admin rights are required.




Quote:
Originally Posted by Doug G
When I have some gui program that needs to run as root I usually just open a terminal, su to root then start the program using the command line.

Reply With Quote
  #4  
Old December 9th, 2011, 12:25 PM
b49P23TIvg's Avatar
b49P23TIvg b49P23TIvg is offline
Contributing User
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Aug 2011
Posts: 3,389 b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 3 Days 14 h 22 m 25 sec
Reputation Power: 383
general procedure that often works for this sort of problem

list all your processes, I have an alias
alias PS='COLUMNS=999 ps xauwwf'
run the gui program in background presumably by clicking a button
list your processes again
find the command used to run the gui program as new process by comparing the two process lists (it will probably be near the bottom of the new list)
then
$ sudo command

or you might be able to find the command directly from the properties of the icon.

Oh---the changes probably don't need to be made in gui mode. You simply don't know which files to change or how to modify them with a text editor. Neither do I.

Reply With Quote
  #5  
Old December 9th, 2011, 12:55 PM
hosttheweb hosttheweb is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2011
Posts: 69 hosttheweb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 28 m 14 sec
Reputation Power: 2
Re

this one is realy confusing for me..can u please explain in detail?


Quote:
Originally Posted by b49P23TIvg
list all your processes, I have an alias
alias PS='COLUMNS=999 ps xauwwf'
run the gui program in background presumably by clicking a button
list your processes again
find the command used to run the gui program as new process by comparing the two process lists (it will probably be near the bottom of the new list)
then
$ sudo command

or you might be able to find the command directly from the properties of the icon.

Oh---the changes probably don't need to be made in gui mode. You simply don't know which files to change or how to modify them with a text editor. Neither do I.

Reply With Quote
  #6  
Old December 9th, 2011, 01:17 PM
b49P23TIvg's Avatar
b49P23TIvg b49P23TIvg is offline
Contributing User
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Aug 2011
Posts: 3,389 b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 3 Days 14 h 22 m 25 sec
Reputation Power: 383
detailed explanation.

OK. It sounds like you start this gui program by clicking an icon, or perhaps through a menu item driven by a mouse.

When you do this, you are not the superuser. So you can't make changes.

Associated with this gui program is a command. You need to find the command so that you can run it from a terminal with
sudo the_command

Now, if the gui interface flashes on and immediately closes it might be hard to find. You'll have to find the command by investigating the icon or menu system. That might take some work.

Another way to find the command, if the gui stays visible, is to

1) start a terminal session. xterm perhaps.

2) Execute the command ps xau making sure there is a way to view the output later.
ps xau >& /tmp/1st_ps_command
or use the scroll bar.

3) start the vpn gui with your mouse.

4) go back to your terminal window. Use ps xau again.

5) Look for differences between the outputs from ps

6) Among the differences you can probably find the command invoked by your mouse.

7) Now that you know the command, you can shut down the useless vpn gui window.

8) go back to your xterm window. Enter the command, but stick sudo in front of it. (you'll need to enter the root password) Now your VPN GUI is running as root enabling you to make changes.

Or I could be completely wrong. I'm not sitting at your console.

I like to look at the processes in tree form, and I like to see the entire command. Instead of using ps xau (and, by the way, the arguments to ps vary substantially between flavors of unix) I have the alias from earlier post. Then I only have to type the command PS to get the information I usually like to see.

Reply With Quote
  #7  
Old December 9th, 2011, 01:40 PM
hosttheweb hosttheweb is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2011
Posts: 69 hosttheweb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 28 m 14 sec
Reputation Power: 2
Re

i shall try this and get back to you..
thanks for providing the steps..
have a great time ahead..

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > How to by pass admin right

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap