Welcome, Guest. Please login or register.
April 21, 2014, 10:35:58 AM
Home Help Search Calendar Login Register
Show unread posts since last visit.
News: Let Pardus-Anka become #1: Pardus-Anka Bug ReportPardus-Anka World Google+ | The Pardus wiki  | Visit Pardus-Anka official website  | Register as forum member?  Email the moderator!

+  Pardus Worldforum
|-+  Assistance
| |-+  Pardus for beginners
| | |-+  tried to use wvdial as user, I changed permissions [solved]
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: tried to use wvdial as user, I changed permissions [solved]  (Read 1192 times)
Lisa
Pardus Guru
****
Posts: 841



View Profile
« on: September 04, 2010, 20:02:04 PM »

Hello,

I've been using KPPP internet dialer utility with no problems.  In the past month or so, my connection speed has gone down a bit. While I wait for a reply from my dial-up ISP, as well as the phone company to inspect the lines, I decided to try out wvdial, which I have used in the past, but for the past two years I have not since each distro I have tried it in one needs to run it as 'sudo', which I didn't feel comfortably doing it this way. 

I found this and went ahead and changed the file permsissions without making any backups.  I also changed the permissions for pap and chap secrets under /etc/ppp

Can anyone give me the Pardus default permissions for these files as the command:
Code:
ls -l
/usr/sbin/pppd
/usr/bin/wvdial
/etc/ppp
/etc/ppp/peers

I found another suggestion to get wvdial to work as user, and that was to edit the sudoers file, and add dialout to it, but that made me feel even more uncomfortable.   I will stick to kppp and would like to change these files back to the default permissions. 
Thank you!
Lisa Marie

Edited to add, that I ended up doing some major surgery on Pardus OS to get wvdial to work without invoking sudo.  The link directions above did work, though after doing some reading about file permissions and giving user and group set UID and set GID rights made me feel this was a security risk.  By the way, I didn't have to give /usr/sbin/pppd set uid and set gid rights for user and group as the above directions suggest, but only the file /usr/bin/wvdial.  But, as I said, I didn't feel comfortable with this setup.   Using sudo before wvdial is probably safer, as sudo invokes security checks, and I didn't have to go in as root in dolphin file manager and change all kinds of file permissions to get it to work. 
« Last Edit: September 13, 2010, 18:56:10 PM by Lisa » Logged
atolboo
Pardus Guru
****
Posts: 2317



View Profile
« Reply #1 on: September 04, 2010, 20:31:57 PM »

Can anyone give me the Pardus default permissions for these files as the command:
Code:
ls -l
/usr/sbin/pppd
/usr/bin/wvdial
/etc/ppp
/etc/ppp/peers

Result:
Quote
atolboo@wind-u90x ~ $ LC_ALL=C ls -l /usr/sbin/pppd
-r-xr-xr-x 1 root root 293812 May 31 19:50 /usr/sbin/pppd
atolboo@wind-u90x ~ $ LC_ALL=C ls -l /usr/bin/wvdial
ls: cannot access /usr/bin/wvdial: No such file or directory
atolboo@wind-u90x ~ $ LC_ALL=C ls -l /etc/ppp
total 60
-rw------- 1 root root   78 Jun 14  2009 chap-secrets
-rw-r--r-- 1 root root  234 Jun 14  2009 chat-default
-rw-r--r-- 1 root root 2276 Jun 14  2009 firewall-masq
-rw-r--r-- 1 root root  978 Jun 14  2009 firewall-standalone
-rwxr-xr-x 1 root root  931 Jun 14  2009 ip-down
-rwxr-xr-x 1 root root 1066 Jun 14  2009 ip-up
-rw-r--r-- 1 root root    5 Jun 14  2009 options
-rw-r--r-- 1 root root   53 Jun 14  2009 options-pppoe
-rw-r--r-- 1 root root  238 Jun 14  2009 options-pptp
-rw------- 1 root root   77 Jun 14  2009 pap-secrets
drwxr-xr-x 2 root root 4096 May 31 19:50 peers
drwxr-xr-x 2 root root 4096 Sep 26  2009 plugins
-rw-r--r-- 1 root root  104 Jun 14  2009 pppoe-server-options
-rw-r--r-- 1 root root 4507 Jun 14  2009 pppoe.conf
atolboo@wind-u90x ~ $ LC_ALL=C ls -l /etc/ppp/peers
total 0
atolboo@wind-u90x ~ $ 
Logged
Lisa
Pardus Guru
****
Posts: 841



View Profile
« Reply #2 on: September 04, 2010, 22:48:11 PM »

Thank you, atolboo!

I'm not certain, but I did try
sudo pisi it --reinstall ppp,  as well as for wvdial and kdenetwork and it seems to have created some default files. I found pap-secrets.newconfig and chap-secrets.newconfig in my /etc/ppp folder.    I went ahead and removed the -secret files I had changed and renamed the .newconfig to the originals.   

The wvdial executable was also as it should be. 
Regards, LIsa Marie
Logged
atolboo
Pardus Guru
****
Posts: 2317



View Profile
« Reply #3 on: September 04, 2010, 23:54:57 PM »

I'm not certain, but I did try
sudo pisi it --reinstall .........
You did the right thing 

Additional info (after pisi it wvdail):
Quote
atolboo@wind-u90x ~ $ LC_ALL=C ls -l /usr/bin/wvdial
-rwxr-xr-x 1 root root 104976 Aug  4  2009 /usr/bin/wvdial
atolboo@wind-u90x ~ $
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!