LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-13-2012, 09:00 PM   #1
timebirds
Member
 
Registered: Mar 2012
Posts: 33

Rep: Reputation: Disabled
How do you set permissions for the whole system?


I would like to know how you set the permissions 774 for the whole system.
Code:
chmod 774 /
doesn't work

Last edited by timebirds; 03-13-2012 at 09:02 PM.
 
Old 03-13-2012, 09:05 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Why on earth would you do that???
 
Old 03-13-2012, 09:09 PM   #3
timebirds
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
Why on earth would you do that???
I want for my ftp to be able to edit all the files i make.
 
Old 03-13-2012, 09:22 PM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
sudo chmod -R 774 / is probably a bad idea.

you should probably create a new user and add them to a group and restrict/ grant access for the group.

and consider using scp.

Last edited by schneidz; 03-13-2012 at 09:25 PM.
 
Old 03-13-2012, 09:23 PM   #5
timebirds
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by schneidz View Post
sudo chmod -R 774 / is probably a bad idea.
why? and what about
Code:
sudo chmod -R 770 /

Last edited by timebirds; 03-13-2012 at 09:24 PM.
 
Old 03-13-2012, 09:27 PM   #6
timebirds
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by schneidz View Post
you should probably create a new user and add them to a group and restrict/ grant access for the group.
so how would you grant access for the group ftpgroup and make it so they can modify the files made by owner. also, i have scp but dont know how to use it. do you know any tutorials or something.

Last edited by timebirds; 03-13-2012 at 09:28 PM.
 
Old 03-13-2012, 09:52 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
The way to do it is:

1. use scp to securely copy over files http://linux.die.net/man/1/scp
2. use ssh (both tools are part of the ssh pkg) to login and do any edits.
http://linux.die.net/man/1/ssh

Globally changing the perms is a really bad idea and unnecessary; ownerships are different to permissions.
If you own the file, you can do anything you want, inc altering perms IF really reqd...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I set a real system user in ProFTP to set to a specific directory? j.smith1981 Linux - Server 27 12-14-2010 09:32 AM
how to set permissions... marciobarbalho Linux - General 5 04-20-2008 03:57 AM
what permissions to set so ftp users can't get to rest of system neocontrol Linux - Security 1 06-25-2007 04:23 AM
How to set permissions? M$ISBS Slackware 6 12-28-2006 11:40 PM
How do I set permissions? Mithic Linux - General 9 11-29-2006 10:49 PM


All times are GMT -5. The time now is 10:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration