Results 1 to 11 of 11

Thread: Linux folder permissions

  1. #1
    Senior Member Stubzz's Avatar
    Join Date
    Sep 2003
    Posts
    573
    Thanks
    0
    Thanked
    0 times in 0 posts

    Linux folder permissions

    For some reason only root can read my /mnt/windows directory nowdays. How do I allow users to view it too, they can mount it and everything.

  2. #2
    HEXUS webmaster Steve's Avatar
    Join Date
    Nov 2003
    Posts
    14,283
    Thanks
    293
    Thanked
    841 times in 476 posts
    I think you want chmod 755 or 555 - that way everybody can read/execute (which is list in directory terms) but not write. Otherwise it's 777 for read/write access.

    I'm not really a lot of help though - as I'm terrible with file permissions!
    PHP Code:
    $s = new signature();
    $s->sarcasm()->intellect()->font('Courier New')->display(); 

  3. #3
    Goat Boy
    Join Date
    Jul 2003
    Location
    Alexandra Park, London
    Posts
    2,428
    Thanks
    0
    Thanked
    0 times in 0 posts
    chmod go+rx <directory name>

    I find that method easier than the binary to decimal one.

    u = user
    g = group
    o = other

    then + or -

    then

    r - read
    w - write
    x - execute

    So the command above would add read and execute permissions to group and other to the directory you specify.

    You may need to run it recursively tho (add -R), so that all the files and folders in /mnt are updated.
    "All our beliefs are being challenged now, and rightfully so, they're stupid." - Bill Hicks

  4. #4
    HEXUS webmaster Steve's Avatar
    Join Date
    Nov 2003
    Posts
    14,283
    Thanks
    293
    Thanked
    841 times in 476 posts
    The only thing I'm thinking, DaBeeeeenster, is that won't they all get reset when linux is rebooted?
    PHP Code:
    $s = new signature();
    $s->sarcasm()->intellect()->font('Courier New')->display(); 

  5. #5
    Senior Member Stubzz's Avatar
    Join Date
    Sep 2003
    Posts
    573
    Thanks
    0
    Thanked
    0 times in 0 posts
    Neither seems to work. The drives NTFS, could that be why?

  6. #6
    HEXUS webmaster Steve's Avatar
    Join Date
    Nov 2003
    Posts
    14,283
    Thanks
    293
    Thanked
    841 times in 476 posts
    Ah, you need to setup a umask when you mount it I think.

    That's all I know - I don't know how to do it, lol.
    PHP Code:
    $s = new signature();
    $s->sarcasm()->intellect()->font('Courier New')->display(); 

  7. #7
    Goat Boy
    Join Date
    Jul 2003
    Location
    Alexandra Park, London
    Posts
    2,428
    Thanks
    0
    Thanked
    0 times in 0 posts
    Erm, be VERY careful with NTFS drives under Linux! You can easily lose your data...

    What Distro are you using? How are you mounting the drive?
    "All our beliefs are being challenged now, and rightfully so, they're stupid." - Bill Hicks

  8. #8
    Senior Member Stubzz's Avatar
    Join Date
    Sep 2003
    Posts
    573
    Thanks
    0
    Thanked
    0 times in 0 posts
    Right sorted it, just needed to add the umask to my fstab. Thanks for that kez!

    DaBeeeenster it's auto mounted via the fstab, read only tho. Running gentoo.

  9. #9
    Goat Boy
    Join Date
    Jul 2003
    Location
    Alexandra Park, London
    Posts
    2,428
    Thanks
    0
    Thanked
    0 times in 0 posts
    Quote Originally Posted by Stubzz
    Right sorted it, just needed to add the umask to my fstab. Thanks for that kez!

    DaBeeeenster it's auto mounted via the fstab, read only tho. Running gentoo.
    Ah OK. I run Gentoo too - great distro.

    Just make sure you have the drives mounted read only; the NTFS drivers are not stable enough yet for NTFS writing...
    "All our beliefs are being challenged now, and rightfully so, they're stupid." - Bill Hicks

  10. #10
    Senior Member Stubzz's Avatar
    Join Date
    Sep 2003
    Posts
    573
    Thanks
    0
    Thanked
    0 times in 0 posts
    Havn't even got write support in the kernel, according to which write support is safe. Albeit you can only edit files, without changing their size and nothing else. Sounds useful.

  11. #11
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,026 times in 677 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS
    /dev/hda1 /mnt/windows ntfs user,noauto,umask=0222 0 0

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Linux - Anyone educated in it?
    By gamezfreak in forum Software
    Replies: 19
    Last Post: 12-12-2007, 10:42 AM
  2. Temp folder before saving to cd ?
    By Dave_07 in forum Software
    Replies: 4
    Last Post: 04-04-2004, 09:51 PM
  3. audio and video problems, and windows app in linux
    By fedoracore in forum Software
    Replies: 0
    Last Post: 28-01-2004, 05:22 PM
  4. Running a linux router box?
    By Steve in forum Software
    Replies: 5
    Last Post: 22-11-2003, 11:14 PM
  5. Manage downloaded webpages file and folder
    By Zathras in forum Software
    Replies: 0
    Last Post: 17-09-2003, 05:37 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
  •