Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: CHMOD-ding

  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    North East England
    Posts
    853
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb CHMOD-ding

    How do I CHMOD a file to 755?

    What does tis mean? CHMOD...
    [+] Computer/PC issues [+] Silverpaw3D
    ------------------------------------------------
    Never buy a dwarf with learning disabilities...

    ...it's not big, and it's not clever.

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    chmod is a *nix comand. It basically sets the permissions on the file:

    chmod 755 filename

    I rarely use the number values, but rather rely on x (execute, r (read), and w(write):

    chmod a=rxw filename

    Gives read, write, and executable permissions to all users.

    chmod a+r filename

    Adds read permission to all users, etc.

    I often mix up chmod and chown though .

  • #3
    New to the CF scene
    Join Date
    Jul 2002
    Location
    Cambridge, UK
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes, incidentally - what exactly is 'CHOWN'?? And how do you do it? (I'm using WS-FTP) Also, what is it used for?
    Thanks

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    North East England
    Posts
    853
    Thanks
    0
    Thanked 0 Times in 0 Posts
    SOunding like a buffoon here; how do I conduct the act of CHMODding?
    [+] Computer/PC issues [+] Silverpaw3D
    ------------------------------------------------
    Never buy a dwarf with learning disabilities...

    ...it's not big, and it's not clever.

  • #5
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    chown is "change owner"

    In *nix, you need permissions to perform actions on files. If you're the owner, you have ful control over the file.

    For example, say I was in Linux, and I ran a file downloading utility as root.

    Whatever files I download will belong to root. Now, I logout and login in as my normal user, "jason". When trying to do anything with the file, I'll get permission denied errors because root is the highest user, and has full control over the machine, the most privileges, etc. If I want the user "jason" to access the file I downloaded, I'd have to go:

    chown jason filename

    Which makes the user "jason" the owner of the file.


    Anyway, I always use a terminal interface for FTP and such, where I can just type in:

    chmod a=rw filename

    For example. I believe each graphical client has its own way of accomplishing that.

  • #6
    New to the CF scene
    Join Date
    Jul 2002
    Location
    Cambridge, UK
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Mouse: what FTP utility are you using? In WS-FTP or CUTE-FTP just right click on the file you want to set permissions for and go to 'CHMOD'.

  • #7
    Regular Coder
    Join Date
    Jun 2002
    Location
    North East England
    Posts
    853
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Got it sorted thanks
    [+] Computer/PC issues [+] Silverpaw3D
    ------------------------------------------------
    Never buy a dwarf with learning disabilities...

    ...it's not big, and it's not clever.


  •  

    Posting Permissions

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