Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Administrative User & Its Permissions.

  1. #1
    Join Date
    Sep 2021
    Beans
    6

    Administrative User & Its Permissions.

    Hi. Im a new to lubuntu. I installed lubuntu 21 and there were no any problem during installation. It asked me to define a user and password normaly. I made it and checked require password everytime to login. Now I have 2 problems so far: first, I have a user partition with ext4 fs but I cant open it. Each time I want to open this in any GUI environment and any file manager, an error appears and says : cant mount this. Then second error appears and says you dont have permission to . . . I tried to change the setting in properties/ permission tab of its, but same error happened and when checked the setting again, I see the checkbox es is unchecked after I clicked ok.
    Second problem is about hibernate. I cant hibernate the notebook because I dont have permission. I think there is a big thing I should know about admin user and permissions. Please help me. Thank u all.

  2. #2
    Join Date
    May 2010
    Beans
    3,247

    Re: Administrative User & Its Permissions.

    Is it Lubuntu 21.04 or Lubuntu 21.10? Lubuntu 21 doesn't exist. If you are unsure then please run:
    Code:
    lsb_release -a
    And give us the output

  3. #3
    Join Date
    May 2010
    Beans
    3,247

    Re: Administrative User & Its Permissions.

    Did you add the file system in /etc/fstab to make it auto-mount at boot? I'm assuming the "user partition" is on an internal system disk.

  4. #4
    GhX6GZMB is offline Iced Almond Soy Ubuntu, No Foam
    Join Date
    Jun 2019
    Beans
    1,093

    Re: Administrative User & Its Permissions.

    Most likely you selected automatic partitioning during install.
    The Lubunutu installer will in that case only make a / partition that contains everything.
    You should have selected manual partitioning, then you can define partitions as you like.
    Best solution is to redo the installation. Changing fstab is also a possibility, but might not be the complete solution. Other settings also need the partitioning information, eg, initramfs.

  5. #5
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Administrative User & Its Permissions.

    Are you the only user on this operating system? Is this "user partition" for you as a user or is it the partition for another user?

    Whether we log in by giving a user name & password or login automatically we will still need to authorize certain actions with our password. Unlike some operating systems Ubuntu does not have an administrator account which will give anyone sitting at the keyboard the power to do anything to the operating system.

    Some user interfaces will ask us to authenticate with our password the action we are trying to take. Are you not getting a dialog box asking you to authenticate the action?

    Regards
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


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

    Re: Administrative User & Its Permissions.

    On Unix-like OSes, storage management is a task for administrative users, not end-users. It requires more understanding than "that other OS" requires. You'll need to understand what these terms mean, exactly, in their correct uses:

    drive - on "that other OS", you may have learned "C: drive" and "D: Drive" - that is factually incorrect. Neither C nor D are "drives." They are partitions.

    partition - a partition is a sub-section of a total storage device. Every "drive" can have between 0 and 128 partitions. Partitions are usually split based on contiguous location on the storage media. With flash and SSD storage, that doesn't really exist anymore like it does on older "spinning disks."

    file system - a file system has to be "formatted" onto a partition before it can be mounted. In "that other OS", there are effectively just 3 file systems used - NTFS, exFAT, and FAT32. In Linux, there are 50 file systems from which we can choose in addition to those three from "that other OS". However, for Linux programs and user's HOME directories, only native Linux file systems can be used. Examples are ext3, ext4, xfs, btrfs, zfs, f2fs, reiserfs, but there are many, many, others. These are all POSIX file systems, unlike the file systems from "that other OS." This is a requirement for Unix permissions which include the owner, group, ACLs, xattrs, and file attributes. That is what allows the chown and chmod commands on every Unix-like OS to work. Those commands do not work on the 3 file systems from "that other OS". Those file systems can only be used for non-secure data storage, nothing else.

    mount - only root or a userid that can elevate to root authority can mount storage on Unix systems. Some Linux distros have hidden that by automatically mounting storage, usually USB/flash/SDHC storage, under /media/{userid}/{Partition LABEL} in what appears to be automatic. This is for convenience and has many security implications. The power to mount, is the power to destroy. Learn that. It will take some experience, usually years, to understand why that is true. There are 3 ways to mount a file system into Linux in a way that it is a "real mount". That last term is mine. There are fake mounts too. More on those later. Real mounts can be accomplished by:
    • editing the /etc/fstab file and putting the mount information for the filesystem, location to be mounted onto, and options.
    • using the "mount" command, using the mount information for the filesystem, location to be mounted onto, and options.
    • setting up autofs, which can mount storage as-requested, using the mount information for the filesystem, location to be mounted onto, and options.

    This applies to all file systems. Native and from "that other OS". There is no good way to mount by point-n-click on storage using a GUI. In general, that creates a "fake mount" which has some liabilities, though there are exceptions in a few specific situations. For file systems from "that other OS", the GUI fake-mount causes permissions and performance issues on most Linuxen. Buried deep in the menus of gnome-disks (if you setup has that program), it is possible to find a way to mount storage with a real mount that will work fast.

    A while ago, I wrote detailed steps to mount storage Https://ubuntuforums.org/showthread....9#post14048909 which also provided tips after over 25 yrs of doing these things. It has the best, easiest, method that I know, which will also be fast and efficient with the storage. I suggest using the LABEL mount method and show specific commands to run. There are other methods, but those use confusing random identifiers that we humans don't really "get" intuitively like a LABEL name can provide.

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

    Re: Administrative User & Its Permissions.

    BTW, people often confuse "new" with "better". With Linux, that isn't necessarily the case. Anyone new to Ubuntu really should run the most recent LTS release, not the "new"-est release. Today, that is 20.04. LTS means a total of 5 yrs of no-hassle, free, support, package updates, etc.

    Non-LTS releases are meant for 6 months of use and Canonical tries out things that often break the OS in those beta releases. They don't call them "beta", but for most people, there will be issues and do you really want to reload your OS every 6 months when support ends?

    There is a valid reason to run a non-LTS release. That is if your hardware is too new and doesn't work with the current LTS or if you are a professional developer/tester and want to help make Ubuntu better by testing the "new" for bugs, reporting them formally, and getting fixes to be tested. Basically, expect to reload the OS every week. In the 1990s, I did that stuff. These days, it isn't how I choose to have my computers setup. Most of them run the N-1 LTS (18.04) and a few have the current LTS (20.04) as I slowly migrate forward.

    lsb_release -a is how Debian-based (i.e. Ubuntu) OSes tell use which release they are. Run that command in a terminal.

    As for not being able to open an ext4 file system, that is probably because by default, the file system is owned by root and doesn't allow other users access. On a single-user system, the answer is probably to run sudo chown $USER /path/to/mounted/location followed by chmod 700 /path/to/mounted/location. That will make the current userid the owner and set permissions so that userid has full access, but nobody else can access it. If you want to allow others to read files/directories from that file system, then use chmod 755 /path/to/mounted/location instead.

    Sorry, I can't help with hibernation. Never use it due to security issues. I use standby, but only if I'm near the system or it is at home. If the laptop will be relocated, then I shut it down for security reasons. For some reason, I vaguely remember that hibernation got broke when they changed the default from using a swap partition to using a swapfile. I don't recall and didn't pay much attention since I'd never use hibernation.
    Last edited by TheFu; September 18th, 2021 at 02:25 PM.

  8. #8
    GhX6GZMB is offline Iced Almond Soy Ubuntu, No Foam
    Join Date
    Jun 2019
    Beans
    1,093

    Re: Administrative User & Its Permissions.

    Frankly, forget the Hibernate thing right now. I'll help you with that later.
    Getting your basic installation and disk partitioning working is more to the point.
    Although those two connect: also define a SWAP partition during install that's a bit larger than your RAM.

  9. #9
    Join Date
    Sep 2021
    Beans
    6

    Re: Administrative User & Its Permissions.

    Thank U ActionParsnip. it is 21.04

  10. #10
    Join Date
    Sep 2021
    Beans
    6

    Re: Administrative User & Its Permissions.

    Quote Originally Posted by ActionParsnip View Post
    Did you add the file system in /etc/fstab to make it auto-mount at boot? I'm assuming the "user partition" is on an internal system disk.
    No, I did Not. I Use an Internal Disk. How Can I do that ?
    Last edited by aabedii; September 19th, 2021 at 03:07 AM.

Page 1 of 2 12 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
  •