Results 1 to 5 of 5

Thread: Creating /etc/protocols /xinetd

  1. #1

    Creating /etc/protocols /xinetd

    I'm trying to use xinetd and it won't start any services without the /etc/protocols file. I can't create the /etc/protocols, even logged in as root. I get a permissions denied error trying to vi or copy files into /etc. I can't create a sym link to a seperate file either. I assume this maybe a Linux (I'm relatively new to Linux) quirk or something is wrong with the box..

    Thanks ahead of time for any help..

    X

  2. #2
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    190
    Quote Originally Posted by xmeister View Post
    I'm trying to use xinetd and it won't start any services without the /etc/protocols file. I can't create the /etc/protocols, even logged in as root. I get a permissions denied error trying to vi or copy files into /etc. I can't create a sym link to a seperate file either. I assume this maybe a Linux (I'm relatively new to Linux) quirk or something is wrong with the box..

    Thanks ahead of time for any help..

    X
    Its problable read only.
    maybe you can try creating /opt/etc/protocols and symlink that to /etc/protocols ( It's just a guess)

    Openwrt or Custom Firmware on asus? - http://wl700ge.hezik.nl/ - Http://wl700g.homelinux.net

    My ASUS collection: WL500gp(80GB usb-hdd - Running OpenWrt Kamikaze 7.09) | WL700gE(250GB - Running OpenWrt Kamikaze 8.09rc1)

  3. #3
    Thx for reply.

    I tried that, created a protocols in tmp (cause that's where most of the system files such as passwd/group/fstab are linked from) and it didn't work. I tried the following statement:
    ln -s /tmp/protocols /etc/protocols
    and got the following error:
    creating symbolic link `/etc/protocols': Operation not permitted

  4. #4
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    190

    Openwrt or Custom Firmware on asus? - http://wl700ge.hezik.nl/ - Http://wl700g.homelinux.net

    My ASUS collection: WL500gp(80GB usb-hdd - Running OpenWrt Kamikaze 7.09) | WL700gE(250GB - Running OpenWrt Kamikaze 8.09rc1)

  5. #5

    Smile wow..

    Wow. It actually worked, I was starting to tear my hair out after trying various things, I'm relatively new to Linux so never sure if the next command I typed would wipe out the system . I was trying to follow the idea that the root is mounted read only (and I guess some of it is) and tried mounting as rw, but according to mount/fstab file it already is.

    Anyways:
    Found a directory to put it (which happened to be /shares/MYVOLUME1/etc)
    cp /etc . -rd
    The r is for recursive and d to keep the links, this seemed to work.
    Added the file (protocols) to the directory and then:
    mount -o bind /shares/MYVOLUME1/etc/etc /etc

    Then started xinetd, which worked - which allowed me to start swat for Samba - which also seems to work.

    Now just need to work with the config for a few weeks and pressure test it, and who knows, might be a new entry on your site for updating Samba .

    Regards,

    X

Similar Threads

  1. Replies: 45
    Last Post: 22-07-2013, 01:06
  2. installing new software
    By Aramaki in forum WL-500g Q&A
    Replies: 1
    Last Post: 12-05-2008, 19:42
  3. Creating new user accounts
    By Leviter in forum WL-700g Q&A
    Replies: 4
    Last Post: 19-06-2006, 20:38

Posting Permissions

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