Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: nic needs to be forced!!

  1. #1
    Member registered user
    Join Date
    Dec 2002
    Location
    The Hague, The Netherlands
    Posts
    93

    nic needs to be forced!!

    I can't get on the internet without being su.

    Have to type in : mii-tool -F 10baseT-HD eth0 (as su) to force my nic to work!

    Then again as su I have to pon.

    (It is configured with pppoeconfig)

    Once the nic is forced it goes great.

    I am using a COM 21 Cable Modem with with www.wanadoo.nl as my provider. I connect with an ethernet card.

    What I would love to happen is for:

    1. All my users to be able to pon (without being su)

    2. I would like to set it up so I (or my users) don't have to type manually "mii-tool -F 10baseT-HD eth0" (as su) to force my nic to work every time!!!

    I've been trying to work this out for months I am going nuts

    Thanks

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: nic needs to be forced!!

    Quote Originally Posted by FelixDzerzhinsky
    2. I would like to set it up so I (or my users) don't have to type manually "mii-tool -F 10baseT-HD eth0" (as su) to force my nic to work every time!!!


    Thanks
    Have you tried putting the line in /etc/init.d/bootmisc.sh so the command is run every time you boot.

  3. #3
    Member registered user
    Join Date
    Dec 2002
    Location
    The Hague, The Netherlands
    Posts
    93
    This is what my file looks like. Where do I put the "mii-tool -F 10baseT-HD eth0 " ???


    # bootmisc.sh Miscellaneous things to be done during bootup.
    #
    # Version: @(#)bootmisc.sh 2.78 13-Nov-1999 miquels@cistron.nl
    #

    . /etc/default/rcS
    #
    # Put a nologin file in /etc to prevent people from logging in before
    # system startup is complete.
    #
    if [ "$DELAYLOGIN" = yes ]
    then
    echo "System bootup in progress - please wait" > /etc/nologin
    cp /etc/nologin /etc/nologin.boot
    fi

    #
    # Wipe /tmp (and don't erase `lost+found', `quota.user' or `quota.group')!
    # Note that files _in_ lost+found _are_ deleted.
    #
    [ "$VERBOSE" != no ] && echo -n "Cleaning: /tmp "
    #
    # If $TMPTIME is set to 0, we do not use any ctime expression
    # at all, so we can also delete files with timestamps
    # in the future!
    #
    if [ "$TMPTIME" = 0 ]
    then
    TEXPR=""
    else
    TEXPR="! -ctime -$TMPTIME"
    fi
    ( cd /tmp && \
    find . -xdev \
    $TEXPR \
    ! -name . \
    ! \( -name lost+found -uid 0 \) \
    ! \( -name quota.user -uid 0 \) \
    ! \( -name quota.group -uid 0 \) \
    -depth -exec rm -rf -- {} \; )
    rm -f /tmp/.X*-lock
    #
    # Clean up any stale locks.
    #
    [ "$VERBOSE" != no ] && echo -n "/var/lock "
    ( cd /var/lock && find . -type f ! -newer /etc/mtab -exec rm -f -- {} \; )
    #
    # Clean up /var/run and create /var/run/utmp so that we can login.
    #
    [ "$VERBOSE" != no ] && echo -n "/var/run"
    ( cd /var/run && \
    find . ! -type d ! -name utmp ! -name innd.pid ! -name random-seed \
    ! -newer /etc/mtab -exec rm -f -- {} \; )
    : > /var/run/utmp
    if grep -q ^utmp: /etc/group
    then
    chmod 664 /var/run/utmp
    chgrp utmp /var/run/utmp
    fi
    [ "$VERBOSE" != no ] && echo "."

    #
    # Set pseudo-terminal access permissions.
    #
    if [ -c /dev/ttyp0 ]
    then
    chmod 666 /dev/tty[p-za-e][0-9a-f]
    chown root:tty /dev/tty[p-za-e][0-9a-f]
    fi

    #
    # Update /etc/motd.
    #
    if [ "$EDITMOTD" != no ]
    then
    uname -a > /etc/motd.tmp
    sed 1d /etc/motd >> /etc/motd.tmp
    mv /etc/motd.tmp /etc/motd
    fi

    #
    # Save kernel messages in /var/log/dmesg
    #
    dmesg > /var/log/dmesg

    # remove comment(s) to enable DMA
    #/sbin/hdparm -qd1 /dev/hda

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    AT the bottom of the file right after the disabled DMA line. note: you may want to enable the DMA by uncommenting the line for it.

  5. #5
    Member registered user
    Join Date
    Dec 2002
    Location
    The Hague, The Netherlands
    Posts
    93

    Finally worked!!!

    Thanks Stephen. It worked!!!

    I still have the permission problem. What do I need to do so my users have pppoe access. At the moment they have to be su.

    Thanks :P

  6. #6
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: Finally worked!!!

    Quote Originally Posted by FelixDzerzhinsky
    Thanks Stephen. It worked!!!

    I still have the permission problem. What do I need to do so my users have pppoe access. At the moment they have to be su.

    Thanks :P
    Have you added them to the dailout group? If not use the command as root adduser user_name dailout and see if that helps.

  7. #7
    Member registered user
    Join Date
    Dec 2002
    Location
    The Hague, The Netherlands
    Posts
    93

    Added users to dialout but still no luck.

    Tried adding users to group dialout (as su). No luck got this message:

    please configure /etc/peers/ppp/provider or use a command line argument to use another file in /etc/ppp/peers directory.

    ????

  8. #8
    Member registered user
    Join Date
    Dec 2002
    Location
    The Hague, The Netherlands
    Posts
    93

    MY current file

    # Configuration file for PPP, using PPP over Ethernet
    # to connect to a DSL provider.
    #
    # See the manual page pppd( for information on all the options.

    ##
    # Section 1
    #
    # Stuff to configure...

    # MUST CHANGE: Uncomment the following line, replacing the user@provider.net
    # by the DSL user name given to your by your DSL provider.
    # (There should be a matching entry in /etc/ppp/pap-secrets with the password.)
    #user myusername@myprovider.net

    # Use the pppoe program to send the ppp packets over the Ethernet link
    # This line should work fine if this computer is the only one accessing
    # the Internet through this DSL connection. This is the right line to use
    # for most people.
    pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1452"

    # If the computer connected to the Internet using pppoe is not being used
    # by other computers as a gateway to the Internet, you can try the following
    # line instead, for a small gain in speed:
    #pty "/usr/sbin/pppoe -I eth0 -T 80"

    # An even more conservative version of the previous line, if things
    # don't work using -m 1452...
    #pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1412"


    # The following two options should work fine for most DSL users.

    # Assumes that your IP address is allocated dynamically
    # by your DSL provider...
    noipdefault
    # Comment out if you already have the correct default route installed
    defaultroute

    ##
    # Section 2
    #
    # Uncomment if your DSL provider charges by minute connected
    # and you want to use demand-dialing.
    #
    # Disconnect after 300 seconds (5 minutes) of idle time.

    #demand
    #idle 300

    ##
    # Section 3
    #
    # You shouldn't need to change these options...

    hide-password
    lcp-echo-interval 60
    lcp-echo-failure 3
    # Override any connect script that may have been set in /etc/ppp/options.
    connect /bin/true
    noauth
    persist
    mtu 1492
    user "c7353047@wanadoo"
    usepeerdns

  9. #9
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: MY current file

    I've never used ppp before but from what the file is saying here you should uncomment this line and put your user name in.


    Quote Originally Posted by FelixDzerzhinsky
    # Configuration file for PPP, using PPP over Ethernet
    # to connect to a DSL provider.
    #
    # See the manual page pppd( for information on all the options.

    ##
    # Section 1
    #
    # Stuff to configure...

    # MUST CHANGE: Uncomment the following line, replacing the user@provider.net
    # by the DSL user name given to your by your DSL provider.
    # (There should be a matching entry in /etc/ppp/pap-secrets with the password.)
    #user myusername@myprovider.net
    I think should be changed to user c7353047@wanadoo if this is your correct username but that's pretty much the only idea I have looking at the file except you should check in the file /etc/ppp/pap-secrets as it tells you for the correct line there also.

  10. #10
    Member registered user
    Join Date
    Dec 2002
    Location
    The Hague, The Netherlands
    Posts
    93

    Permission Denied!

    knoppix@hal9000:~$ pon
    SIOCSIFFLAGS: Permission denied
    /usr/sbin/pppd: Can't open options file /etc/ppp/peers/dsl-provider: Permission denied


    That is what happens when I pon as a normal user.

    My users are already in dialout.

    What should I do?

Page 1 of 2 12 LastLast

Similar Threads

  1. filesystem mounted read-only after check forced
    By scramble in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 02-06-2005, 05:46 PM
  2. Knoppix is very nice, but I forced to switch back to win xp
    By wilson001 in forum Hardware & Booting
    Replies: 14
    Last Post: 01-25-2005, 05:25 AM
  3. Can not login as a regular user....forced to use ROOT
    By Orion Pax in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 08-02-2004, 01:50 PM
  4. hdd check forced, not repairable
    By pi-sics in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 03-21-2004, 10:57 AM
  5. Password protection and forced graphical login
    By jmrizz in forum Customising & Remastering
    Replies: 5
    Last Post: 01-31-2003, 05:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Lenovo M70q Gen 2 USFF Core i9-10900t - 8GB RAM - 128GB SSD - NO HDD picture

Lenovo M70q Gen 2 USFF Core i9-10900t - 8GB RAM - 128GB SSD - NO HDD

$295.55



HP EliteOne 800 G4 24

HP EliteOne 800 G4 24" Touch AiO 8GB RAM 256GB SSD 3 GHz i5 Win11 Pro Grade A

$214.99



Custom Gaming Desktop PC Intel i7 Quad 16 GB SSD + 1 TB AMD Radeon RX 580 8 GB picture

Custom Gaming Desktop PC Intel i7 Quad 16 GB SSD + 1 TB AMD Radeon RX 580 8 GB

$409.00



Dell Optiplex 5040 MT Core i5-6500 3.20GHZ 8GB RAM 256GB SSD Win 10 Pro WiFi picture

Dell Optiplex 5040 MT Core i5-6500 3.20GHZ 8GB RAM 256GB SSD Win 10 Pro WiFi

$89.99



NEW OEM Tray AMD Ryzen 7 5700X 8-Core 16-Thread 3.4GHz Socket AM4 CPU Processor picture

NEW OEM Tray AMD Ryzen 7 5700X 8-Core 16-Thread 3.4GHz Socket AM4 CPU Processor

$149.00



Intel Xeon E5-2667 v2 SR19W 3.30GHz 25M 8GT/s 8-Core LGA2011 CPU Processor picture

Intel Xeon E5-2667 v2 SR19W 3.30GHz 25M 8GT/s 8-Core LGA2011 CPU Processor

$24.99



Intel - Core i5-13600K 13th Gen 14 cores 6 P-cores + 8 E-cores 24M Cache, 3.5... picture

Intel - Core i5-13600K 13th Gen 14 cores 6 P-cores + 8 E-cores 24M Cache, 3.5...

$283.99



Intel NUC6i5SYK Micro PC Intel Core I5-6260U 1.8Ghz 8GB 128GB picture

Intel NUC6i5SYK Micro PC Intel Core I5-6260U 1.8Ghz 8GB 128GB

$70.00



HP Z420 Workstation Xeon E5-2690 v2 3ghz 10-Cores 64gb  240gb SSD  1TB  Win10 picture

HP Z420 Workstation Xeon E5-2690 v2 3ghz 10-Cores 64gb 240gb SSD 1TB Win10

$199.99



Dell OptiPlex 3060 MT Core i5 8th Gen 16GB Ram 480 GB SSD Windows 11 Computer picture

Dell OptiPlex 3060 MT Core i5 8th Gen 16GB Ram 480 GB SSD Windows 11 Computer

$239.00