Questions tagged [chmod]

A Unix tool for changing file permissions

248 questions
0
votes
2 answers

CentOs, Folder Permissions

I would like to give an FTP user permission to write in a folder but should not be able to alter other files in the folder or sub folder in the main folder. I have a root account, we are using the web server to run from /home/usera --> the default…
Zeeshan
  • 1
  • 1
0
votes
2 answers

Change ownership and permissions of file

Is it possible to change owner/group of a file AND permissions with 1 command? I tried: chmod user1:groupOfUser1=770 file.txt but it does not work.
Jim
  • 335
  • 2
  • 4
  • 8
0
votes
1 answer

Samba users are writing files with the same owner

I created a Samba share and 3 users (Marc, Mary and Paul), both in Ubuntu (12.04 LTS) and Samba. Then I configured 3 Win7 computers to access the share, each with different credentials. I created 3 folders, one for every user, and chown'd them to…
Alex
  • 11
  • 1
0
votes
1 answer

Ubuntu, How to prevent listing sub-directory if parent-directory is protected

I remember last time when I am on some Linux OS ( cannot remember ), when I change the mod of a directory to 711, that folder together with all of its sub-directories cannot be listed (ls -al) by any other user different from the owner. However my…
iKid
  • 165
  • 5
0
votes
1 answer

Default owner and group for new files/folders

Possible Duplicate: How to set up default group permission in linux folder I'm uploading to /var/www via SFTP and wondered how I can get it so when I upload a file or folder it always has the owner and group as www, and have the default chmod as…
0
votes
3 answers

Permissions on directories for file uploads?

Possible Duplicate: What are the best linux permissions to use for my website? What is the correct way to set up directories to allow user uploads on Linux? My websites upload dir is 755, but Linux naturally doesn't let files be written to this…
John Bowlinger
  • 297
  • 1
  • 4
  • 13
0
votes
1 answer

Trying to include file from another account: permissions denied

I have a dedicated server running php with dso handler, I am including a global config.php from one account into all the other accounts. This works fine on apache when opening the sites via browser. But I also have some cron jobs, and there i get…
urysz
  • 1
  • 2
0
votes
1 answer

apache user directory access permission denied

I've run chmod 777 on /home/cache/, however the apache user is still unable to write to it. My php script is writing to this directory but got a permission denied error and don't know why. ls -ld cache shows: drwxrwxrwx. 2 root root 69632 Aug 24…
user12145
  • 1,115
  • 6
  • 28
  • 47
0
votes
1 answer

chmod -R 777 /. - RHEL 5.5

A shell script testing went bad and it issued chmod -R 777 /. to the system, instead of chmod -R 777 ./ and as expected it wiped the critical meta data. We have turned off the system and it will not function properly the next time it is turned…
user1263746
  • 189
  • 3
  • 8
0
votes
1 answer

When is chmod 777 justified?

I know that one should avoid setting file/folder permissions to 777 and instead use a more granular approach. I would like to know, if there are specific cases when using chmod 777 on a webserver is justified.
user81458
0
votes
2 answers

Apache 404 Error While PHP File Exists

I am getting 404 error while the file exist. I gave the file (chmod 755) still the file does not show up. Strange part it only happens to few files. I am certain the file exists on the directory and PHP file have no script errors. My .htaccess…
charles
  • 1
  • 1
  • 1
0
votes
1 answer

ubuntu change default files and folders permission

i have ubuntu 10.04 on my server. when i was create a file by ftp, php and ... files permission is 600 and folders is 700. how can i change default files permission into 644 and folders to 755? upload file by CuteFtp my username is not ROOT suphp…
Hamid Tanhaei
0
votes
3 answers

Possible to globally change chmod permissions based on logged in user?

This is a little embarrassing to ask, but I just set up a ubuntu server with openssh. Is it possible to create a user that has read-only access to chmod **7 files if that user is not the owner, nor part of the group? In other words files with **7…
user784637
  • 1,542
  • 7
  • 35
  • 52
0
votes
1 answer

How to achieve user permission isolation?

/opt/software /home/user1/file /home/user2/file user1 can rwx to /home/user1/file user2 can rwx to /home/user2/file softwarecan rwx to both /home/user1/file and /home/user2/file user1 can't rwx to /home/user2/file user2 can't rwx to…
ispirto
  • 89
  • 1
  • 1
  • 9
0
votes
2 answers

Create Symbolic Link to files below user's home dir

I apologize in advanced if this question is better suited for Stack Overflow. We have a CentOS cPanel server and we want to share some PHP code base with another user. We don't have open_basedir enabled on any account and is disabled in httpd. I…
Mikey1980
  • 751
  • 1
  • 8
  • 12