bugGNU nano - Bugs: bug #60401, ~/.local/share/nano is uncreatable...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #60401: ~/.local/share/nano is uncreatable for other user

Submitter:  Oscar <devosc>
Submitted:  Fri 16 Apr 2021 09:23:18 AM UTC
   
 
Severity:  3 - Normal Status:  Invalid
Assigned to:  None Open/Closed:  Closed

Sat 24 Apr 2021 09:54:39 AM UTC, comment #4: 

As I have no further information, I am guessing that this is not a bug in nano but that the problem occurs because two users use the same home directory but one of them does not have full read and write access to all files and directories in that home directory.

Benno Schulenberg <bens>
Group administrator
Tue 20 Apr 2021 09:23:37 AM UTC, comment #3: 

Hello Oscar.  Any feedback on this?

Benno Schulenberg <bens>
Group administrator
Fri 16 Apr 2021 11:00:52 AM UTC, comment #2: 

Ehm, scratch that.  If I understand correctly, you have two users, let's say one named 'user', and another named 'other', but both use /home/user as their home directory (but user has set HOME to '/home/user' and other has it set to '/home/user/').  In that case, you have to change the permissions on ./local/share because by default it seems that directory is writable only for the user itself.

ll -dn ~/.local
drwx------ 29 1000 1000 4096 apr 16 12:50 .local/share/


Benno Schulenberg <bens>
Group administrator
Fri 16 Apr 2021 10:48:18 AM UTC, comment #1: 

The extra slash (/) in $HOME is unlikely to be the cause of getting a "Permission denied", because multiple consecutive slashes in a path are perfectly valid.  Could it be that ~/.local or ~/.local/share belongs to root and is thus unwritable for the actual user?

Benno Schulenberg <bens>
Group administrator
Fri 16 Apr 2021 09:23:18 AM UTC, original submission:  

I'm running a ubuntu machine with two users, both of them share the home directory, the problem comes because the second user home directory is set to /home/user/ when I try to edit any file with this user an error is printed:

proppos@J501PS1024:/home/user$ echo $HOME
/home/user/
proppos@J501PS1024:/home/user$ nano .bashrc
Unable to create directory /home/user//.local/share/nano/: Permission denied
It is required for saving/loading search history or cursor positions.

The error probably could be addressed by removing any / at the end of the user home directory.

Oscar <devosc>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by devosc (Submitted the item)
  • -email is unavailable- added by devosc
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-04-28 bens Open/ClosedOpen Closed
    2021-04-24 bens StatusNeed Info Invalid
    2021-04-16 bens SummaryAny file is unwritable when the home directory is set with a final / ~/.local/share/nano is uncreatable for other user
    2021-04-16 bens StatusNone Need Info
    2021-04-16 devosc Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code