Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a NAS that runs on Linux and I connect to it from my Windows desktop. I noticed that all directory in that drive belongs to user 'root' and group 'root'. That effectively denies me the right to write on those directory; only read rights.

Is there a way I can add my desktop username e.g. sara-laptop/sara into the Linux root group which will then give me rights to write on those directory?

I was thinking about changing the ownership to nobody/nobody which will give everyone rights to write on it. But could be a bad idea as I'm worried that other users will accidentally delete some of my items.

share|improve this question

closed as unclear what you're asking by Braiam, Jenny D, Anthon, Thomas Nyman, maxschlepzig Sep 28 '14 at 10:04

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

Is this being shared over SMB/CIFS? How are you authenticating? What version of Linux does it run? Using nobody/nobody will not give everyone rights. It's a user and group just like root. – jordanm Nov 4 '12 at 6:52
What NAS device? I'm surprised this type of thing isn't mentioned in its documentation. – Mat Nov 4 '12 at 9:55

It seems that some important information on how you are accessing the NAS is missing - it doesn't seem likely that you would have been sold a NAS that's read-only.

Anyway, if you are attaching the NAS share from Windows, then the NAS is likely to be running samba (to provide SMB/CIFS interface for Windows) - in that case you'd need to tweak its configuration, probably in /etc/samba, since samba handles users separately from those on the underlying unix system (at least to some extent).

As for the original question - it's not only a matter of user/group, you also need to know the access rights, which usually are rwx for owner, and r-x for group and others. Hence adding yourself to the group might not necessarily help anyway. However, for both of the above, there should be some simple web interface running on the NAS, where you could set it to your liking.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.