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

Thread: permission to make new folder

  1. #1
    Join Date
    Oct 2016
    Location
    Highgrove, Ky
    Beans
    494
    Distro
    Lubuntu

    permission to make new folder

    i finally figured the question i need to ask;
    my linux is on an 5.25 drive. i put it in my new computer. the LXTerminal still has the name of my old computer.
    ''Name@ Name-OptiPlex-GX270''
    i was trying to right click on the desktop, create a new folder and i get;

    Error creating directory /home/Name/Desktop/
    New: Permission denied

    I've never had the pleasure, of this Problem. so
    How can i get my my dristo's on the 5.25 HDD, to recognize the newer computer?, maybe is the right question.
    i dont know my Name, on this new computer.
    the only bad question is one that is not asked.
    the good Lord give me Major Dyslexia so that i might learn. if you dont understand what i write sometimes, that makes two of us.. i confuse myself..

  2. #2
    Join Date
    Oct 2016
    Location
    Highgrove, Ky
    Beans
    494
    Distro
    Lubuntu

    Re: permission to make new folder

    Never-mind;, after i posted this the 1st page i went to; https://www.lifewire.com/create-dire...command-399184 '
    so that takes care of my permissions problems;
    as far as ''Name@Name-OptiPlex-Gx270", i dont think it matters much.
    the only bad question is one that is not asked.
    the good Lord give me Major Dyslexia so that i might learn. if you dont understand what i write sometimes, that makes two of us.. i confuse myself..

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

    Re: permission to make new folder

    That link didn't work for me. "Page not found" error from the lifewire.com server. Probably best to seek answers from websites that have "ubuntu" in the domainname somewhere, if you aren't certain about the author.

    You can boot from a "Try Ubuntu" desktop flash or optical ISO.

    From there, you can mount the HDD storage. From the mount, you can see the file permissions the owner and group. These will be numbers, probably 1000 and 1000. The fact that they are the same is extremely common, but purely coincidence. The uid and gid are just 32-bit numbers less than 64K in size. Ubuntu usually begins normal user's (humans) at 1000 and increases +1 for each new account. Once you have the uid, you can look that up in the /etc/passwd file under the mounted storage, not the currently running system. Don't get confused. Every Unix system has an /etc/passwd file, but the system on the HDD isn't being used when we boot from the "Try Ubuntu" installation media.

    As for usernames and hostnames, those should be all lower-case for a number of reasons. In theory, it should never matter, but from time to time, it does and will break something if the exact case isn't used. Always use lowercase for usernames and always use all lower-case for hostname. Hopefully, you'll never know about any problem, but when it happens, it really sucks.

    BTW, I seriously doubt it is a 5.25inch HDD. Those haven't been made in 30+ yrs. Perhaps 3.5inch is the size? Doesn't matter.

    Just for completeness. All Unix-like systems use the exact same permissions models. In the world of popular OSes today, that is all OSes except 1. Learning Unix permissions will not be a waste of your time. https://help.ubuntu.com/community/FilePermissions has a tutorial/explanation. But really just reading it isn't sufficient. If you really want to learn this stuff, it takes about 45 minutes, 3 userids, 3 groups, and a bunch of playing around mixing and matching permissions for files, directories, using different userids, different groups. About 25 minutes in, you'll have the "ah ha" moment and just need another 15 minutes to solidify the knowledge. After then, you'll not have any basic issues with permissions that aren't easily solved on any Unix-like OS again. It is worth the effort if you expect to live another 5 yrs.

  4. #4
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,820
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: permission to make new folder

    That Name-OptiPlex-GX270 is the hostname. When you install Ubuntu, you have to provide a hostname and the installer proposes that name as default. Many just leave it like that. I gave my computer a different name. But after installation that name is just stored in a file and the system will continue to use it until you change it, even if you replace all hardware.

    Your permission denied error seems unrelated. What are the permissions on the directory where you want to create something new?
    Code:
    ls -ld ~/Desktop

  5. #5
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: permission to make new folder

    If you realĺy want to change the hostname of your machine it's just a couple of system files, /etc/host and /etc/hostname that need editing. They are both simple text files so easy to edit.

  6. #6
    Join Date
    Oct 2016
    Location
    Highgrove, Ky
    Beans
    494
    Distro
    Lubuntu

    Re: permission to make new folder

    @TheFu;
    wellll, i just want to make sure i get to terminology right on my HDD, so my thinking stays somewhat straight. the HDD is; 4" wide, and 5 5/8" long. ;~)
    i been known to make mistakes.
    HaHaHa, on the 5 years, i might make 10 or so. stfl [salty tears from laughing].
    ?. does it matter if ya show the hostname of your PC, while on line. [thinking of security].
    PS, if hostname can have the wrong name, means it dont matter me.
    Last edited by oneleded; September 19th, 2020 at 02:57 AM.
    the only bad question is one that is not asked.
    the good Lord give me Major Dyslexia so that i might learn. if you dont understand what i write sometimes, that makes two of us.. i confuse myself..

  7. #7
    Join Date
    Oct 2016
    Location
    Highgrove, Ky
    Beans
    494
    Distro
    Lubuntu

    Re: permission to make new folder

    @Impavidus;
    i finally figured that out. thanks all!!!
    Last edited by oneleded; September 19th, 2020 at 03:03 AM.
    the only bad question is one that is not asked.
    the good Lord give me Major Dyslexia so that i might learn. if you dont understand what i write sometimes, that makes two of us.. i confuse myself..

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

    Re: permission to make new folder

    https://en.wikipedia.org/wiki/List_o...e_form_factors about hdd sizes.

    hostnames only matter f you use names that have meaning you don't want shared. I use names of stars, hardly a national secret.
    hadar regulus romulus icarus posc orion I used longer names years ago when I wanted to learn to spell the nouns. That got old, fast.

  9. #9
    Join Date
    Oct 2016
    Location
    Highgrove, Ky
    Beans
    494
    Distro
    Lubuntu

    Re: permission to make new folder

    thanks i'll get back to ya; checked out Wikipedia;
    Livewire
    How to Use 'mkdir' to Create Linux Directories
    guess i need to work on my copy and paste skill's.
    think i will change the hostname, just to do it.
    Last edited by oneleded; September 20th, 2020 at 07:56 AM.
    the only bad question is one that is not asked.
    the good Lord give me Major Dyslexia so that i might learn. if you dont understand what i write sometimes, that makes two of us.. i confuse myself..

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

    Re: permission to make new folder

    A basic linux reference. It is worth learning the knowledge and skills in a specific order since prior skills are necessary for almost everything. mkdir is 1st day stuff. http://linuxcommand.org/tlcl.php is a no-hassle, free, reference.

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
  •