LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-21-2014, 01:34 AM   #1
threegig
LQ Newbie
 
Registered: Jun 2005
Posts: 21

Rep: Reputation: 0
Linux Server User Permissions


Hi Guys I am setting up a small Ubuntu server so I can share folders with the rest of my home network. I want users to be able to view folders and copy files but not allow users to cut or change files.
What permissions should I set. Is read the same as copy?
Thanks
 
Old 12-21-2014, 03:16 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Set permissions as r-x

chmod -R u=rwx,g=rx,o=rx directory
 
Old 12-21-2014, 05:30 AM   #3
threegig
LQ Newbie
 
Registered: Jun 2005
Posts: 21

Original Poster
Rep: Reputation: 0
Thanks Veerain
I had a look at the chmod man page and I understand the
r - read w-write and x-execute commands but what command relates to the copying of a file. Does read allow copying?
I am just trying to understand the commands as it will help me in the future.
Thanks and have a great Xmas.
 
Old 12-21-2014, 07:41 AM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Yes read permission on a file allows copying it.
 
Old 12-30-2014, 12:12 AM   #5
kevinmilan2014
LQ Newbie
 
Registered: Nov 2014
Posts: 17

Rep: Reputation: 1
User rights/Permissions

- The first character that I marked with an underscore is the special permission flag that can vary.
- The following set of three characters (rwx) is for the owner permissions.
- The second set of three characters (rwx) is for the Group permissions.
- The third set of three characters (rwx) is for the All Users permissions.

The Permission Groups used are:

u - Owner
g - Group
o or a - All Users

The potential Assignment Operators are + (plus) and - (minus); these are used to tell the system whether to add or remove the specific permissions.

The Permission Types that are used are:


r - Read
w - Write
x - Execute
 
  


Reply



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
NFS permissions issue, client user to server as root markosjal Linux - Networking 1 03-17-2014 03:59 PM
Linux user permissions vidyasagar6 Linux - Server 1 11-29-2012 01:04 AM
setfacl changes group permissions; giving another user rw permissions secretlydead Linux - Server 4 09-22-2012 11:12 PM
[SOLVED] filesystem permissions question - making so user can't change permissions? c0pe Linux - Security 4 07-12-2010 09:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:17 PM.

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
Open Source Consulting | Domain Registration