Chmod grrrr

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shovenose
    Send Doge Memes
    • Aug 2010
    • 6575
    • USA

    #1

    Chmod grrrr

    I've spent the last 17 minutes trying to change the permissions of the folder on my Ubuntu Server, and now I gave up L(( I want to make the folder /var/backup to be 777 permissions. I don't know if it matters but my username on my server is michel
  • mockingbird
    Badcaps Legend
    • Dec 2008
    • 5484

    #2
    Re: Chmod grrrr

    You're aware that you can do this in the GUI, right? Go to the file's properties and tick the right read/write boxes until it shows 777.
    "We have offered them (the Arabs) a sensible way for so many years. But no, they wanted to fight. Fine! We gave them technology, the latest, the kind even Vietnam didn't have. They had double superiority in tanks and aircraft, triple in artillery, and in air defense and anti-tank weapons they had absolute supremacy. And what? Once again they were beaten. Once again they scrammed [sic]. Once again they screamed for us to come save them. Sadat woke me up in the middle of the night twice over the phone, 'Save me!' He demanded to send Soviet troops, and immediately! No! We are not going to fight for them."

    -Leonid Brezhnev (On the Yom Kippur War)

    Comment

    • mariushm
      Badcaps Legend
      • May 2011
      • 3799

      #3
      Re: Chmod grrrr

      if you're not the owner of that folder, you can't change permissions like you want...

      the command is chmod [special][owner][group][others]

      So each digit affects rights for particular user or set of users...

      4 = read
      2 = write
      1 = allow execution or parsing the contents of the folder

      So if you say 6, that's 4+2 which means allow to read or write in the file, but if the entry is a folder, you can't view the contents (no parsing of contents).

      So chmod 777, that means :
      owner can write, read and parse contents,
      the users in the group the user who created the file/folder is in can read/write/parse folder
      everyone can write, read, parse contents

      The special is a forth digit which basically says:

      4000 (the set-user-ID-on-execution bit) Executable files with this bit set will run with effective uid set to the uid of
      the file owner. Directories with the set-user-id bit set will force all files and sub-directories created in them to
      be owned by the directory owner and not by the uid of the creating process
      2000 (the set-group-ID-on-execution bit) Executable files with this bit set will run with effective gid set to the gid of the file owner.
      1000 (the sticky bit) See chmod(2) and sticky(8).
      You don't care about those.

      --

      If you michel are not a root user, you can't change permissions to allow any user to parse the folder or write in it.
      You must first use the sudo command to elevate your permissions to the ones of a root user and then you can set whatever permissions you want for that folder.

      The whole man page is here: http://www.manpagez.com/man/1/chmod/

      Oh... this is probably much better at explaining than me: http://catcode.com/teachmod/
      Last edited by mariushm; 01-23-2012, 09:55 AM.

      Comment

      • shovenose
        Send Doge Memes
        • Aug 2010
        • 6575
        • USA

        #4
        Re: Chmod grrrr

        Originally posted by mockingbird
        You're aware that you can do this in the GUI, right? Go to the file's properties and tick the right read/write boxes until it shows 777.
        And you're aware I'm on Ubuntu Server which as no GUI?

        Comment

        • mariushm
          Badcaps Legend
          • May 2011
          • 3799

          #5
          Re: Chmod grrrr

          Originally posted by shovenose
          And you're aware I'm on Ubuntu Server which as no GUI?
          Install Midnight commander, you'll thank me later....

          Midnight Commander is a great file manager similar to Norton Commander from the old DOS days.

          Install MC. At the command prompt type:

          sudo apt-get mc

          To run MC with root privileges, at the command prompt type:

          sudo mc

          To run MC as a regular user, at the command prompt type:

          mc
          (Much safer but you won't be able to edit system files)

          Comment

          • toastygoodness
            Badcaps Veteran
            • Jul 2005
            • 813
            • United States

            #6
            Re: Chmod grrrr

            it should be easier to download filezilla client on a windows box, then SSH into the ubuntu server. it will save you a lot.

            mc's okay, but if you're trapped with the CLI, it won't make it much better. you might just be looking for:

            Code:
            sudo chmod -R 777 (directory)

            Comment

            • shovenose
              Send Doge Memes
              • Aug 2010
              • 6575
              • USA

              #7
              Re: Chmod grrrr

              Toasty, so al I have to do is that? After al this? Ah I will try that an report back. Thank you to everybody

              Comment

              • shovenose
                Send Doge Memes
                • Aug 2010
                • 6575
                • USA

                #8
                Re: Chmod grrrr

                Yay u r amazing i di it!!!

                Comment

                • toastygoodness
                  Badcaps Veteran
                  • Jul 2005
                  • 813
                  • United States

                  #9
                  Re: Chmod grrrr

                  nice. now set up SSH securely, and use filezilla SFTP client. you'll be glad you did. puTTY and filezilla, you'll almost never need to touch your server physically. and while you're at it, make a clonezilla backup of your server, in case something happens.

                  Comment

                  • shovenose
                    Send Doge Memes
                    • Aug 2010
                    • 6575
                    • USA

                    #10
                    Re: Chmod grrrr

                    um... I always use sFTP in filezilla and SSH either on petty or terminal if I'm on Mac ..
                    My server for.St even have a monitor keyboard or mouse on it...

                    Comment

                    Related Topics

                    Collapse

                    • ChaosLegionnaire
                      bug of the month: write caching setting for the hard drive in device manager
                      by ChaosLegionnaire
                      i recently bought a new wd re4 2tb with 2014 datecodes. when i got around to testing it tho in victoria hd tester, the write speed was very slow at 14 mb/s with a 256 sector transfer size. when i increased the transfer size to 1024 sectors, the write speed increased slightly to 44 mb/s. read speeds and sector verify speeds were fine and at normal speeds.

                      so i just ass-u-med the drive's poor performance was due to it being an advanced format drive and i was using it on winxp. when i tried cloning my system disk to this wd re4 2tb drive and writing to it in linux, the write speed...
                      10-06-2019, 01:39 PM
                    • vbogoev
                      Lenovo S6000 won't turn on. Data recovery needed.
                      by vbogoev
                      Hello,

                      Here I have the mentioned tablet with motherboard s6000-mb-h401. The tablet won't turn on, no display, charging normally. I manage to connect to UART port and got this output when I try to start it:

                      Code:
                      [PWRAP] pwrap_init_preloader
                      [PWRAP] pwrap_init
                      [PWRAP] _pwrap_init_sidly [Read Test] pass,SIDLY=0 rdata=5AA5
                      [PWRAP] _pwrap_init_sidly [Read Test] pass,SIDLY=1 rdata=5AA5
                      [PWRAP] _pwrap_init_sidly [Read Test] pass,SIDLY=2 rdata=5AA5
                      [PWRAP] _pwrap_init_sidly [Read Test] pass,SIDLY=3 rdata=5AA5
                      [PMIC_WRAP]wrap_init pass,the return
                      ...
                      06-20-2023, 06:36 AM
                    • alphabetty
                      novice user attempting first BIOS write on ASUS laptop
                      by alphabetty
                      Hello first post!


                      Ok so after an (ASUSTek) optional Windows update, my old ASUS E403NA laptop rebooted and froze in the BIOS menu screen and was unresponsive so after about 30 mins I powered off and back on again. Now i just get a power LED and a black screen, I have tried all the basic suggestions and all the suggestions on the ASUS site, spoke to ASUS support who said I will need to pay for an RMA.

                      The laptop is worth €50 so I won't be doing the RMA at god knows what price.

                      So I have seen some videos where people have reprogrammed the BIOS...
                      03-07-2024, 08:31 AM
                    • CapThatBrass
                      RT809F Chip Write Failure - Winbond 25R256JV
                      by CapThatBrass
                      Hi,

                      I've managed to take an image dump in BIN format of my Dell Latitude 5420, which had a Winbond 25R256JV chip installed.

                      I used an RT809F programmer to obtain the BIN, using the supplied iFix RT809F programmer application (latest version being 20220830).

                      The programmer automatically found the settings to read the chip but selected the Winbond W25Q256FV instead (my actual model isn't available on the listing within the software). The image came out fine - I did this multiple times to clarify the data being read was the same each time.

                      ...
                      10-04-2022, 11:56 AM
                    • ndarjo21
                      i2ite ec read/write using ft232h
                      by ndarjo21
                      hi all, i have i2ite written in python by c0d3z3r0. it using for read/write ITE SIO/EC chip via SMBUS. for now, i havent try it because i couldnt buy ft232h in my country. supported device to do this is(based on pyftdi):
                      FT2232C/D, FT232H, FT2232H, FT4232H, FT4232HA.
                      i attached the link to the i2ite c0d3z3r0 give to me. anyone here have that device above and can test it for me?
                      hi codezero, do you plan to improve this code to read and write entire EC firmware, which is usually 128kb?
                      02-23-2025, 11:38 PM
                    • Loading...
                    • No more items.
                    Working...