Questions tagged [file-ownership]

A file system attribute used mainly for access control to file resources.

Many operating systems utilize the concept of file ownership to identify a specific system user as the owner of a file or directory. Where classes of users may be granted varying privileges for access to a file or directory (typically read, write, execute, or variations of those), the owner will have distinct permissions.

Useful links:

120 questions
0
votes
1 answer

Why did "chown" and "chgrp" changed permissions of a directory? It is not a "chmod"!

Everything was good on my website. Then I ran this: root@[domain] [/home/[username]/public_html/[foldername]]# chown jaimemontoya -R webroot/ root@[domain] [/home/[username]/public_html/[foldername]]# chgrp jaimemontoya -R webroot/ What I was…
Jaime Montoya
  • 6,915
  • 14
  • 67
  • 103
0
votes
0 answers

R package install

I am trying to install R studio packages. I am running R as a "datacleaning" user this user Some packages are installed from the local sources: if (!require("SparseM", lib=lib.path)) install.packages("/dc/R/p1/SparseM_1.7.gz", repos = NULL,…
camilleb
  • 1
  • 1
0
votes
1 answer

Import .csv to create a list of filenames and corresponding owners

I am working on creating a script that will read a .csv document containing a single column of filenames (one per cell) and search a larger folder for each of the files matching the filenames provided and identify the 'owner' using: (get-acl…
Garrett
  • 617
  • 12
  • 30
0
votes
2 answers

Where's the right place in an Android AOSP build to set ownership on a device in /dev?

I'm porting AOSP to a custom board, and I need /dev/ttymxc4 to be owned by u-blox so that the GPS driver can use it. (Nothing else needs to use it.) Ideally, I would like this to be specified in the build process, rather than as I run-time…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
0
votes
1 answer

Python save file permissions & owner/group and restore later

I have the following problem. I need to replace a file with another one. As far as the new is transfered over the network, owner and group bits are lost. So I have the following idea. To save current permissions and file owner bits and than after…
user4671628
0
votes
1 answer

Just messed up a server misusing chown, how to execute it correctly?

I'm moving from an old shared host to a dedicated server at MediaTemple. The server is running Plesk CP, but, as far as I can tell, there's no way via the Interface to do what I want to do. On the old shared host, running cPanel, I creative a .zip…
Jack
  • 9,615
  • 18
  • 72
  • 112
0
votes
1 answer

Is there any way to see all the owners from current directory and file name in huge concurrent logs (without ls)

For my current issue I require listing all the files which have a different owner than the current owner. We have almost 600 000 files in current directory and ls -l or any other ls command will give us trouble. [system@support forms]$…
user2500742
  • 721
  • 1
  • 5
  • 10
0
votes
1 answer

File conflict error during rpm install

I have two rpms xinstrument.rpm and xlog.rpm. First the xinstrument.rpm should be installed followed by the xlog.rpm. Both these rpms create and copy data into /opt/xinstrument-control/ directory. But problem is when we install the second rpm…
RKum
  • 758
  • 2
  • 12
  • 33
0
votes
2 answers

getpwuid and getgrgid causes segfault when user does not exist for given UID

I am running a C program in linux, which prints filename plus its user and group ownership. I am using getpwuid and getgrgid. When file is owned by non-existent user (ie, there is no entry in /etc/passwd for given UID on my machine), my program…
Martin Vegter
  • 136
  • 9
  • 32
  • 56
0
votes
1 answer

Gave nobody user owner ship of directory, now missing. Can I revert back by just doing the opposite command?

I upgraded my server from easy apache 3 to 4 and gained some permission issues, I ran: chown -R nobody /home/myuser/public_html in the server, which corrected this, now that directory is no where to be seen on cpanel but the site is still live.…
0
votes
0 answers

How do I make Tomcat7 a user that owns a folder without apt-get?

Backstory: I'm using tomcat7 to host Java Spring code for an API with Ionic but we discovered that file:// gets blocked by tomcat7 service and Ionic sends an origin of file://. This is a bug that was fixed in 7.0.71. Apt-Get Install tomcat7 only…
user3654055
  • 178
  • 14
0
votes
0 answers

C# - setting / getting owner of file on other lan pc

I have 4 computers connected in LAN network. I made some program for file managing. My problem is that i can't get or set owner of, when i access to some file in other pc. I searched on the internet for answers, but nothing solves my problem. Is is…
EtherealNP
  • 101
  • 1
  • 1
  • 11
0
votes
2 answers

save files in MATLAB with user ownership

I am using savefig() and saveas() functions to save .fig and .jpg files resp. in MATLAB (R2015a, Ubuntu 14.04, personal computer, single account). However, the owner of files being generated is root. I want the owner to be my user account. I can use…
user3342981
  • 85
  • 2
  • 7
0
votes
0 answers

Set owner of file produces security ID error

I am attempting to allow users to attach files to my form, in Java, and have these files saved into a specific directory in a storage drive. Because our system places a limit on the amount of space a user can have in the storage, we created a user…
DaftDeath
  • 99
  • 2
  • 5
0
votes
1 answer

Set javascript file writable only to root

So I have a NodeJS app with a node module called linux-user it just provides a api to view / change Linux users through javascript. In my app I just have it scanning and outputting what the userid is and the username for the linux host. I want to…
InitEnabler
  • 63
  • 10