Jump to content

magikman

Members
  • Content Count

    63
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by magikman


  1. We are gonna need a bit more information than that.

     

    What exactly do you want the server to do?

     

    What OS are the other computers running?

     

    and any other information that might pertain to this.

    the other two computers will be running win2k or winxp...

     

    i would like the server to act as a gateway for the other two computers as well as to be able to be accessed by the other two computers for filesharing purposes IE; if i download something on one of the second computers and dont want to store it on it's hard drive, so i would store it on the server's drive.

    Well, to share files between the Linux computer and the windows computer, you would have to use samba. To use your computer as a gateway/firewall you would have to use iptables. Although, I would really have to advice not to use samba on your firewall, it just does not seem like a great idea.


  2. After looking around i found a great way to do this:

     

    find . -type f -name "*.doc" -exec chmod 644 {} \;

     

    If you don't know what any of this does:

     

    The . (dot) tells find were to start looking. A . (dot) starts looking from the dir you execute the command from. /home/user (a 'hard' path) is also legal.

     

    -type f tells find to look for files and not directories, which would be -type d.

    -name "*doc" here the name, or part of it can be given. This one looks for files that end with doc.

     

    -exec chmod 644 {} \; find enables you to execute other unix command from within its structure. chmod 644 is excuted on every file found.

     

    Please be carefull if you are not experienced with the -exec {} \; structure.

    One 'trick' to test if all is well: -exec echo "" {} \;

    Instead of executing the command it will be echoed.

     

    For details: man find and google.


  3. Okay, I am trying to write a script to help with changing permissions. What I would like it to do is look at a directory and all sub directories and change the permissions on files with a given extension. For instance if there have been 30 .doc files sent to the server all being in different directories I would like to be able to change their permissions in one fatal swoop.

     

    Thanks. :D


  4. Anyweb, i was thinking that it would be a great idea to allow people to connect to Efnet/#linux-noob from the forum/website. I really don't know what you would use to accomplish this project, but am sure that it would create more traffic and users in the channel!!

     

    Sanchez


  5. I am somewhat new to the Linux scene, but I figure the best way to learn it is to just use it 24/7. So I have Slackware installed on a Toshiba laptop (which I use for my day-to-day activities), p4 2.26GHz, and I also have Slackware running on a 533 that is acting as my firewall.

×
×
  • Create New...