-1
  • Any reason I can't just drop a file into a directory ?

ie: /var/lib/whatever

I know it's a root access issue, but...

  • Is this not an option due to the root limitation with Ubuntu?

I have a buddy who isn't a fan of Ubuntu because of this very reason & will only run Cent OS. Is there a way to prove him otherwise?

CarlosAV
  • 334
  • 1
  • 4
KCMike
  • 21

2 Answers2

6

If the folder is owned by root user, and you're trying to drop the file with your user, it's normal behavior that Ubuntu doesn't allow you to do it.

Options

  • Give write permission for your user in the desired folder (chmod 775 destination/folder)
  • Do the action you want via terminal with 'sudo' (sudo mv /path/file /destination/folder)
CarlosAV
  • 334
  • 1
  • 4
2

The layout of the file system is based on the Filesystem Hierarchy System which designates certain directories as being available for users, and others available for the system, and so forth.

/var/lib is a space where the programs you have installed on your system can store their own information, such as system-wide settings, databases and so on. It's not intended for users to put files into.

thomasrutter
  • 37,804