Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 35

Thread: Cannot create a file in /home directory

  1. #21
    Join Date
    Oct 2011
    Location
    Ohio, USA
    Beans
    412
    Distro
    Ubuntu

    Re: Cannot create a file in /home directory

    Everything else set aside, why can't I, as ROOT, do whatever I want to my system. I thought this was the point of being ROOT. Is there a user above ROOT?

    I also created an entire new user and have the exact same problems as I do with my own login.

    Bill
    Been in computers since 1962; Windows computers almost gone now. Only 1 gaming machine left.

  2. #22
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Cannot create a file in /home directory

    Read-only file systems break what root can do.

    Also, there are some other options which can be set (like immutable flags), to make a file (directories are just files too, BTW) read-only. root can change those properties, but you have to know to do it.

    Perhaps I missed the proof that the file system wasn't read-only mounted?

  3. #23
    Join Date
    Oct 2011
    Location
    Ohio, USA
    Beans
    412
    Distro
    Ubuntu

    Re: Cannot create a file in /home directory

    I thought that's what all the "rwxrwxrwx"s were about in the listing for /home/bill directory. Doesn't that mean read/write/execute? I am really confused now. So what you're saying is that even ROOT can't do everything it wants to. Even as root, I was unable to CHOWN from 'sambashare' to anything else. kept getting "can't do that".

    Just checked my three Linux laptops. None of them will allow creating a file or directory in the Home directory. maybe it's a new rule or something.

    Bill
    Last edited by WB0HYQ; August 5th, 2021 at 08:21 PM.
    Been in computers since 1962; Windows computers almost gone now. Only 1 gaming machine left.

  4. #24
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Cannot create a file in /home directory

    Quote Originally Posted by WB0HYQ View Post
    I thought that's what all the "rwxrwxrwx"s were about in the listing for /home/bill directory. Doesn't that mean read/write/execute?

    Bill
    Nope. It is in the mount properties, not the permissions.
    Which file system is /home in? Is that mounted read-write or read-only RIGHT now?
    Corruption can force a read-only mount to protect data.
    Has an fsck been run on that file system to ensure it isn't corrupted?

  5. #25
    Join Date
    Oct 2011
    Location
    Ohio, USA
    Beans
    412
    Distro
    Ubuntu

    Re: Cannot create a file in /home directory

    Okay. Here's the output of 'findmnt':

    Code:
    bill@bill-UBU:~$ findmnt /dev/sda1
    TARGET             SOURCE    FSTYPE  OPTIONS
    /media/bill/WIN764 /dev/sda1 fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id         <------ this is my Win 7 partition (separate drive)
    
    bill@bill-UBU:~$ findmnt /dev/sdb1
    TARGET SOURCE    FSTYPE OPTIONS
    /      /dev/sdb1 ext4   rw,relatime,errors=remount-ro           <------ This is my Linux drive
    And this is the whole enchilada, using 'df':

    Code:
    bill@bill-UBU:~$ df -T
    Filesystem     Type      1K-blocks      Used  Available Use% Mounted on
    udev           devtmpfs    8134492         0    8134492   0% /dev
    tmpfs          tmpfs       1639368      3940    1635428   1% /run
    /dev/sdb1      ext4      240231392  45019700  182985520  20% /                  <----- presumably, my Linux install on a separate SATA internal drive
    tmpfs          tmpfs       8196828         0    8196828   0% /dev/shm
    tmpfs          tmpfs          5120         4       5116   1% /run/lock
    tmpfs          tmpfs       8196828         0    8196828   0% /sys/fs/cgroup
    /dev/loop3     squashfs      56832     56832          0 100% /snap/core18/2066
    /dev/loop0     squashfs     101760    101760          0 100% /snap/core/11316
    /dev/loop2     squashfs     101888    101888          0 100% /snap/core/11420
    /dev/loop1     squashfs      56832     56832          0 100% /snap/core18/2074
    /dev/loop6     squashfs      66688     66688          0 100% /snap/gtk-common-themes/1515
    /dev/loop4     squashfs     168832    168832          0 100% /snap/gnome-3-28-1804/161
    /dev/loop5     squashfs     166784    166784          0 100% /snap/gnome-3-28-1804/145
    /dev/loop7     squashfs      86912     86912          0 100% /snap/shotcut/282
    /dev/loop8     squashfs      81920     81920          0 100% /snap/shotcut/347
    tmpfs          tmpfs       1639364        32    1639332   1% /run/user/1000
    /dev/sda1      fuseblk   976758784 205446995  771311789  22% /media/bill/WIN764
    /dev/sde1      fuseblk   976074748 315828524  660246224  33% /media/bill/My Book      <----- External USB drive
    /dev/sdc       fuseblk  1953514580   1484672 1952029908   1% /media/bill/Big_U            <----- internal SATA drive
    tmpfs          tmpfs       1639364        84    1639280   1% /run/user/1001
    /dev/sdd1      fuseblk    30240831   5394873   24845958  18% /media/bill/32G(M)           <----- USB thumb drive
    Bill
    Last edited by WB0HYQ; August 5th, 2021 at 08:35 PM.
    Been in computers since 1962; Windows computers almost gone now. Only 1 gaming machine left.

  6. #26
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Cannot create a file in /home directory

    Ok, so
    Code:
    /dev/sdb1 ext4   rw,relatime,errors=remount-ro
    says it is mounted read-write.
    Code:
    /dev/sdb1      ext4      240231392  45019700  182985520  20% /
    says that it isn't out of space.

    Code:
    $ df -i |grep sdb1
    would check if inodes are available. Please run it

    What does 'id' return?
    Did you remove all the ACLs yet? Make the permissions bill:bill 660 on /home/bill. Be certain there's no + on the permissions. If there are, the ACLs need to be cleared.

    Then run touch /home/bill/foo

    Please show all commands and output.

    BTW, I've never heard of findmnt. I usually just use df -h . while I'm in the directory. As usual, more than 1 way to get an answer. I almost always use df -Th, since it shows the most useful information in an easy to read way.

    Did you happen to run the fsck yet?

  7. #27
    Join Date
    Oct 2011
    Location
    Ohio, USA
    Beans
    412
    Distro
    Ubuntu

    Re: Cannot create a file in /home directory

    fsck keeps complaining the the system is mounted and aborts.

    'df' command reports:

    Code:
    bill@bill-UBU:~$ df -i |grep sdb1
    /dev/sdb1        15269888 523066   14746822    4% /
    'id' returns:

    Code:
    bill@bill-UBU:~$ id
    uid=1000(bill) gid=1000(bill) groups=1000(bill),4(adm),20(dialout),21(fax),24(cdrom),25(floppy),26(tape),27(sudo),29(audio),30(dip),44(video),46(plugdev),104(fuse),107(scanner),109(lpadmin),113(netdev),124(sambashare),130(powerdev),144(wireshark)
    Been in computers since 1962; Windows computers almost gone now. Only 1 gaming machine left.

  8. #28
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Cannot create a file in /home directory

    Well, you need to run the fsck when the file system isn't mounted. Use a Try Ubuntu flash drive or the Recovery Mode boot option from grub.

    inodes are fine.
    Nothing too odd in the id output either.

    The other stuff coming?

  9. #29
    Join Date
    Oct 2011
    Location
    Ohio, USA
    Beans
    412
    Distro
    Ubuntu

    Re: Cannot create a file in /home directory

    Other stuff? What did I miss?

    Bill
    Been in computers since 1962; Windows computers almost gone now. Only 1 gaming machine left.

  10. #30
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Cannot create a file in /home directory

    Quote Originally Posted by WB0HYQ View Post
    Other stuff? What did I miss?
    26 post above specifies a few things.

Page 3 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

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