linuxmint / linuxmint/nemo

Enable copy/paste/creation of folders and files in admin://

Open
#3,449 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stale
Dominant language
C
Stars
1.6k
Forks
368
Avg merge
4d 4h
Merged PRs (30d)
2

Description

When running nemo with elevated privileges using admin:// the creation of files or folders is not allowed.

We can see this was changed in this commit: https://github.com/linuxmint/nemo/commit/161c54fbe54deb0609ea38b227ddaec84e137937:

nemo-view.c: Disallow creation of folders or files in admin:// -
it does not properly set file permissions (the same reason copy/paste
is not allowed either.)

I am not sure whether this is a feature request or a bug but the current behavior when browsing with elevated privileges is inconsistent and confusing. Files/folders can be deleted but not created.

I am not sure the exact semantics of the file permission issue, but if an admin user can accomplish the same thing in a terminal, shouldn't he be able to do it in nemo? Otherwise one could argue that admin:// access should be removed period. That would be consistent.

Thoughts? comments?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with nemo-view.c and the referenced commit 161c54fbe54deb0609ea38b227ddaec84e137937 to understand why creation and copy/paste were disabled for admin://. Trace the existing delete path and permission handling, then establish whether safe consistent file operations can be supported; done means the behavior is consistent without incorrect permissions.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.