View Full Version : Internet connection working in root not as user..
champ_rock
15-10-2005, 10:23 PM
ok i finally dumped ubuntu and installed fc4
now i am using sify connection and installed its client when i was logged in as root.....
now it runs fine in root logs me in and all that
when i rreturn to normal browsing and then try to connect it asks for user id and pass alright and then just displays the time and the command line resumes...
no internet connection though... any guesses
alib_i
16-10-2005, 12:22 AM
check which files and binaries are installed by the client ( through documentation etc )
I think you dont have read/write/execute permission in one of the files.
Do a "chmod 775" over that binary/file.
-----
alibi
champ_rock
16-10-2005, 09:30 AM
whats chmod775?????
sorry but i am a linux newbie
ujjwal
16-10-2005, 12:07 PM
The sify daemon, which is installed by the install script provided by sify, is started as an init script for your distro, and creates two files readfifo and writefifo, which can only be written to by root. A better way to login would be to uninstall the sify client, and manually start the daemon and login when you want to.
To uninstall the client, run as root
rm /usr/bin/sifyconnect
rm /usr/bin/sifyd
rm /etc/init.d/sifybb
rm /etc/rc2.d/SS20sifybb
rm /etc/rc3.d/SS20sifybb
rm /etc/rc5.d/SS20sifybb
Then, to login while a normal user, cd to the directory where you extracted the sify client, and run
./sifyd
./sifyconnect -l
If you do not wish to type two commands to connect, you can use a small script I created, which will start the daemon, login, and then kill the daemon (useful only on unlimited time connections). Copy sifyd and sifyconnect to /usr/local/bin, and create a small text file there called sifylogin with this content -
#!/bin/sh
sifyd
sifyconnect -l
exec killall sifyd
Give this file executable permissions by running "chmod +x /usr/local/bin/sifylogin".
Now, to login, all you have to do is run "sifylogin".
champ_rock
16-10-2005, 12:23 PM
thaks will tyry it soon.... great thing...
champ_rock
16-10-2005, 01:20 PM
created the exec but same prob
[akshay@localhost ~]$ sifylogin
Sify broadband daemon already running...
run sifyconnect --login to login)
Welcome to Sify BroadBand Service
username :**********
password :*************
Sun Oct 16 00:22:22 2005
sifyd(2056): Operation not permitted
sifyd(2499): Operation not permitted
sifyd(2500): Operation not permitted
sifyd: no process killed
[akshay@localhost ~]$
champ_rock
16-10-2005, 01:21 PM
butr it works fine in root............
ujjwal
16-10-2005, 02:01 PM
The problem is happening because the sify daemon is already running, and has been started by root. Have you uninstalled it properly and restarted the system? You could also (as root) kill the sifyd process and run the steps
killall sifyd
Uninstalling it will prevent the sifyd process from being started (by root) at every bootup.
champ_rock
16-10-2005, 06:45 PM
but the prob is not of killing the sifyd process...the thing is not connectiong via the mormal user account whereas i am able to connect when logged in as root....
ujjwal
16-10-2005, 07:34 PM
Well, which user can connect depends upon which user has started the sifyd daemon, do one thing, type "ls /tmp -l | grep fifo" and check the output. You should get something like this -
# ls /tmp/ -l | grep fifo
prw-r----- 1 akshay users 0 2005-10-17 01:04 readfifo
prw-rw---- 1 akshay users 0 2005-10-17 01:04 writefifo
If instead of "akshay users" you get "root root" in the columns, this means that readfifo and writefifo cannot be written to by normal users, and hence only root can connect. If so, make sure sifyd is not running, and then delete those files as root user. Now, start sifyd as a normal user and you should be able to connect.
champ_rock
16-10-2005, 07:37 PM
the sifyd deomen has been started as it shows the login screen...
it asks for my id and pass and then simply shows the date and not my accout details.....
but when i use the su command and then try to login it works fine...
ujjwal
16-10-2005, 07:41 PM
Arre what is important is "who" (more appropriately - which user) owns the fifo files in /tmp. If the user does not have write access to them, he will not be able to login to sify.
champ_rock
17-10-2005, 01:14 PM
i have sucessfully created the sifyloin file as suggested by ujjwal...
and in that process i deleted all the insatlled files of sify........
coolblue
17-10-2005, 10:46 PM
Hey Ujjwal....u seem to be pretty knowledgeable abt linux....can u plz recommend good linux books for me....I've been using linux but I'm a bit of a newbie when it comes to geeky commands. Plz tel me where u learned all that...
And Champrock, can u tell me whats the speed of ur internet connection and how much it all costs....and where do u stay.
Thanks in advance:D
vignesh
18-10-2005, 07:43 AM
chmod is used to change permissions.
champ_rock
18-10-2005, 09:44 PM
ok i stey in delhi...
i have 64 kbps :(
500 per month sify broadband connection...
UNLIMITED
champ_rock
18-10-2005, 09:45 PM
yeah UJJwal i would also like to know about the books and all that
praka123
19-10-2005, 02:31 AM
ok i stey in delhi...
i have 64 kbps :(
500 per month sify broadband connection...
UNLIMITED
First Dump the sifyd.'lsof |grep sifyd' and run 'kill process id of sifyd'
Is Sify BB adsl type like Dataone?then u can configure it using GUI->system-config-network >new adsl connxn and start the connection using System tools>network device control in Appliaction menu/KDE menu As Local user.before u need to create ur lan card as device eth0.
If urs is cable internet Select system-config-network >new modem connxn.
If u got sifyd rpm.u can very well uninstall it using 'rpm -e whatever'.
Best of Luxk :wink:
ujjwal
19-10-2005, 03:00 PM
I certainly do not have much knowledge about linux, and I have not read through many linux books to be a good advisor, but this is one (old) book that I found useful, and quite enjoyable on a train journey :lol:, its rather nice for getting a basic idea of linux/unix concepts -
http://www.tldp.org/LDP/gs/gs.html
champ_rock
19-10-2005, 07:30 PM
thanks for the book... useful one......
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.