Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 15-10-2005, 10:23 PM   #1 (permalink)
champ_rock
 
champ_rock's Avatar
 
Join Date: Jun 2005
Location: Somewhere on the earth , near the equator
Posts: 751
Default Internet connection working in root not as user..

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
__________________
-------------
Registered Linux user number 400618
champ_rock is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 16-10-2005, 12:22 AM   #2 (permalink)
Wise Old Owl
 
alib_i's Avatar
 
Join Date: Jun 2004
Location: omnipresent
Posts: 1,191
Default

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
__________________
What I've felt, What I've known; Never shined through in what I've shown
Never free, Never me; So I dub thee unforgiven
-Metallica
alib_i is offline  
Old 16-10-2005, 09:30 AM   #3 (permalink)
champ_rock
 
champ_rock's Avatar
 
Join Date: Jun 2005
Location: Somewhere on the earth , near the equator
Posts: 751
Default

whats chmod775?????
sorry but i am a linux newbie
__________________
-------------
Registered Linux user number 400618
champ_rock is offline  
Old 16-10-2005, 12:07 PM   #4 (permalink)
Alpha Geek
 
Join Date: Dec 2003
Posts: 780
Default

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".
__________________
Hardware - Celeron 266 MHz, 128MB RAM, Intel i740 8MB RAM
Software - Slackware Linux 10.1; Archlinux 0.7; Windows 98 SE
Humanware - GS/CS C++ L+++ w b+++ DI+ D+ e
ujjwal is offline  
Old 16-10-2005, 12:23 PM   #5 (permalink)
champ_rock
 
champ_rock's Avatar
 
Join Date: Jun 2005
Location: Somewhere on the earth , near the equator
Posts: 751
Default

thaks will tyry it soon.... great thing...
__________________
-------------
Registered Linux user number 400618
champ_rock is offline  
Old 16-10-2005, 01:20 PM   #6 (permalink)
champ_rock
 
champ_rock's Avatar
 
Join Date: Jun 2005
Location: Somewhere on the earth , near the equator
Posts: 751
Default

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 ~]$
__________________
-------------
Registered Linux user number 400618
champ_rock is offline  
Old 16-10-2005, 01:21 PM   #7 (permalink)
champ_rock
 
champ_rock's Avatar
 
Join Date: Jun 2005
Location: Somewhere on the earth , near the equator
Posts: 751
Default

butr it works fine in root............
__________________
-------------
Registered Linux user number 400618
champ_rock is offline  
Old 16-10-2005, 02:01 PM   #8 (permalink)
Alpha Geek
 
Join Date: Dec 2003
Posts: 780
Default

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.
__________________
Hardware - Celeron 266 MHz, 128MB RAM, Intel i740 8MB RAM
Software - Slackware Linux 10.1; Archlinux 0.7; Windows 98 SE
Humanware - GS/CS C++ L+++ w b+++ DI+ D+ e
ujjwal is offline  
Old 16-10-2005, 06:45 PM   #9 (permalink)
champ_rock
 
champ_rock's Avatar
 
Join Date: Jun 2005
Location: Somewhere on the earth , near the equator
Posts: 751
Default

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....
__________________
-------------
Registered Linux user number 400618
champ_rock is offline  
Old 16-10-2005, 07:34 PM   #10 (permalink)
Alpha Geek
 
Join Date: Dec 2003
Posts: 780
Default

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.
__________________
Hardware - Celeron 266 MHz, 128MB RAM, Intel i740 8MB RAM
Software - Slackware Linux 10.1; Archlinux 0.7; Windows 98 SE
Humanware - GS/CS C++ L+++ w b+++ DI+ D+ e
ujjwal is offline  
Old 16-10-2005, 07:37 PM   #11 (permalink)
champ_rock
 
champ_rock's Avatar
 
Join Date: Jun 2005
Location: Somewhere on the earth , near the equator
Posts: 751
Default

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...
__________________
-------------
Registered Linux user number 400618
champ_rock is offline  
Old 16-10-2005, 07:41 PM   #12 (permalink)
Alpha Geek
 
Join Date: Dec 2003
Posts: 780
Default

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.
__________________
Hardware - Celeron 266 MHz, 128MB RAM, Intel i740 8MB RAM
Software - Slackware Linux 10.1; Archlinux 0.7; Windows 98 SE
Humanware - GS/CS C++ L+++ w b+++ DI+ D+ e
ujjwal is offline  
Old 17-10-2005, 01:14 PM   #13 (permalink)
champ_rock
 
champ_rock's Avatar
 
Join Date: Jun 2005
Location: Somewhere on the earth , near the equator
Posts: 751
Default

i have sucessfully created the sifyloin file as suggested by ujjwal...
and in that process i deleted all the insatlled files of sify........
__________________
-------------
Registered Linux user number 400618
champ_rock is offline  
Old 17-10-2005, 10:46 PM   #14 (permalink)
Apprentice
 
Join Date: Mar 2005
Location: Kolkata
Posts: 63
Default 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
coolblue is offline  
Old 18-10-2005, 07:43 AM   #15 (permalink)
Wise Old Owl
 
vignesh's Avatar
 
Join Date: Jul 2004
Location: Chennai
Posts: 1,659
Default

chmod is used to change permissions.
vignesh is offline  
Old 18-10-2005, 09:44 PM   #16 (permalink)
champ_rock
 
champ_rock's Avatar
 
Join Date: Jun 2005
Location: Somewhere on the earth , near the equator
Posts: 751
Default

ok i stey in delhi...
i have 64 kbps
500 per month sify broadband connection...
UNLIMITED
__________________
-------------
Registered Linux user number 400618
champ_rock is offline  
Old 18-10-2005, 09:45 PM   #17 (permalink)
champ_rock
 
champ_rock's Avatar
 
Join Date: Jun 2005
Location: Somewhere on the earth , near the equator
Posts: 751
Default

yeah UJJwal i would also like to know about the books and all that
__________________
-------------
Registered Linux user number 400618
champ_rock is offline  
Old 19-10-2005, 02:31 AM   #18 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,513
Default

Quote:
Originally Posted by champ_rock
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
praka123 is offline  
Old 19-10-2005, 03:00 PM   #19 (permalink)
Alpha Geek
 
Join Date: Dec 2003
Posts: 780
Default

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 , its rather nice for getting a basic idea of linux/unix concepts -

http://www.tldp.org/LDP/gs/gs.html
__________________
Hardware - Celeron 266 MHz, 128MB RAM, Intel i740 8MB RAM
Software - Slackware Linux 10.1; Archlinux 0.7; Windows 98 SE
Humanware - GS/CS C++ L+++ w b+++ DI+ D+ e
ujjwal is offline  
Old 19-10-2005, 07:30 PM   #20 (permalink)
champ_rock
 
champ_rock's Avatar
 
Join Date: Jun 2005
Location: Somewhere on the earth , near the equator
Posts: 751
Default

thanks for the book... useful one......
__________________
-------------
Registered Linux user number 400618
champ_rock is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 10:27 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2