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
0 answers

Uploaded files changing permission and owner to root automatically

I´m having a weird issue, when trying to upload files directly from website. So I´ve set a gallery and other uploading folders as 755 with user permission, and all recursive directories and files as well, however every time I upload a file in…
0
votes
2 answers

Count files made by given user in Centos

My sessions directory is very large and I would like to count how many files are made by each separate user (each domain). Is there an option (with ls maybe) to count (not to list) total files made by a given user ? I know that ls -alh dir_name…
adrianTNT
  • 3,671
  • 5
  • 29
  • 35
0
votes
2 answers

Joomla 3.2 installation file/directory ownership issues

I am trying to install Joomla 3.2 using the host provided by my university. So, I have available one mysql database with the username and pass and the ftp username and pass to transfer data, only. That is, no Cpanel installed or ssh available. If I…
electrique
  • 431
  • 6
  • 18
0
votes
0 answers

How to change owner recursivly depending of the actual owner

I'm just a beginer with PowerShell but I'm already sure that it's a powerfull language. I want to make an easy thing with my first script : "Recursivly changing owner of files and folder depending of the actual owner". But I realize that it will not…
Surfin
  • 1
0
votes
1 answer

File owner changed after editing it

[root@MGWSDT_FEWS ~]# ll file -rw-r--r-- 1 root bill 0 Aug 14 17:28 file [root@MGWSDT_FEWS ~]# su - bill $ vi /root/file I edited this file and wq! Now bill becomes the file owner: $ ll /root/file -rw-r--r-- 1 bill bill 16 Aug 14 17:29…
qiuweidong
  • 17
  • 1
  • 3
0
votes
1 answer

Can I use s3fs cache for Nginx?

I’m using s3fs for Web contents storage. Its mount point is /data/example.com/. The s3fs cache path is /data/cache/example.com/. My Nginx currently uses /data/example.com/ for the document root. I want to change this to /data/cache/example.com, but…
kuwa
  • 1
  • 2
0
votes
1 answer

Uploaded file with PHP cannot changed by FTP

I have a script to upload files, after uploading file the owner of files are 48 (Apache) and when I trying to delete that files with FTP, I get the access denied error, the ftp owner id is 500. I have CentOS without control panel, I install the…
MajAfy
  • 3,007
  • 10
  • 47
  • 83
-1
votes
1 answer

Linux command on changing ownership and displaying files

Hi I am new to Linux and I need to learn how to perform these 3 tasks -rw-r--r--@ 1 user1 staff 108 Oct 17 21:28 coolstuff.o Change permissions so that user can read/write/execute, group can read/execute and other can execute. Assume you are…
-1
votes
1 answer

Change Owner and Group in Public HTML

I had unziped files (Wordpress) via terminal in public_html. But the extracted files have value "Zero" as group / owner attributes. I want them to match my public_html i.e. Owner = 704 & Group = 99 How can I rest these to a specific value? And how…
vitagoal1
  • 15
  • 6
-1
votes
1 answer

how to change ownership for files and folder at once

in my plugin folder I've uploaded a few plugins true Wordpress. /httpdocs/wp-content/plugins I need to change the ownership of every file and folder form 48 48 to 10004 503 to not have any problems with the rights. how can I do that?
Mark
  • 3
  • 2
-1
votes
1 answer

Delphi code to get Owner of a Netware file not working

I'm a Delphi developer and have never programmed for netware. But I need to find the owner of a file on a netware share. After some research, I got this code snippet from a newsgroup (original author: Chris Morgan). It's basically a way to…
-1
votes
1 answer

Remove owner rights

I have a write-restricted folder which may only be written in if the user is in a specific group or has been explicitly given the rights to do so. I have successfully implemented that with C++ using SetNamedSecurityInfo on the folder with the…
nwp
  • 9,623
  • 5
  • 38
  • 68
-1
votes
2 answers

way to check original file permissions in linux

I was wondering if there was a way to check factory original file permissions of important system config files in linux, solaris, and freebsd systems etc. I'm creating a hardening software tool in python that edits configuration files autonomously…
Derek Dub
  • 53
  • 2
  • 11
-2
votes
1 answer

Change file ownership by being a sudoer

let's say that we have this situation : -rwxrwx-w- 1 user1 mygroup 0 Sep 12 16:53 testfile Can a sudoer change this file ownership ? does he have to be a sudoer on command chown or on file ?
Elias
  • 89
  • 10
-3
votes
2 answers

Prevent a user to see public folder

I have php apps on a container on linux based image. That apps have to be public access (007 at least) to work properly. I am trying to create an user (inside container) with a script and give softlink related projects located under /var/www to that…
rmznbyk 1
  • 1,104
  • 2
  • 13
  • 27
1 2 3 4 5 6 7
8