DIGIT-ARC read-only archive · snapshot: July 23, 2026

Internet connection working in root not as user..

20 posts · originally from https://geek.digit.in/community/threads/internet-connection-working-in-root-not-as-user.16992/

champ_rock
champ_rock Original post #1
Oct 15, 2005 at 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
alib_i #2
Oct 16, 2005 at 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
Oct 16, 2005 at 9:30 AM
whats chmod775?????
sorry but i am a linux newbie
U
ujjwal #4
Oct 16, 2005 at 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

Code:
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

Code:
./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 -

Code:
#!/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
Oct 16, 2005 at 12:23 PM
thaks will tyry it soon.... great thing...
champ_rock
Oct 16, 2005 at 1: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
Oct 16, 2005 at 1:21 PM
butr it works fine in root............
U
ujjwal #8
Oct 16, 2005 at 2: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

Code:
killall sifyd

Uninstalling it will prevent the sifyd process from being started (by root) at every bootup.
champ_rock
Oct 16, 2005 at 6: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....
U
ujjwal #10
Oct 16, 2005 at 7: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 -

Code:
# 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
Oct 16, 2005 at 7: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...
U
ujjwal #12
Oct 16, 2005 at 7: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
Oct 17, 2005 at 1: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........
C
coolblue #14
Oct 17, 2005 at 10:46 PM
Hmmmm

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
vignesh #15
Oct 18, 2005 at 7:43 AM
chmod is used to change permissions.
champ_rock
Oct 18, 2005 at 9:44 PM
ok i stey in delhi...
i have 64 kbps :(
500 per month sify broadband connection...
UNLIMITED
champ_rock
Oct 18, 2005 at 9:45 PM
yeah UJJwal i would also like to know about the books and all that
praka123
praka123 #18
Oct 19, 2005 at 2:31 AM
champ_rock said:
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:
U
ujjwal #19
Oct 19, 2005 at 3: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 -

*www.tldp.org/LDP/gs/gs.html
champ_rock
Oct 19, 2005 at 7:30 PM
thanks for the book... useful one......