[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

User permissions and rights on centos

Posted on 2009-05-06
6
Medium Priority
?
2,432 Views
Last Modified: 2013-11-25
How can I give an user the right to change file/folders' permissions and/or ownerships via console on CentOs 5.2





0
Comment
Question by:Hekkro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 29

Expert Comment

by:fosiul01
ID: 24313203
you need to make the user owner of that file

to make the owner :

use chown

chown -R user  foldername   [ here -R for recursive ]

it wil change the owner ship

then give the read and write permision over that folder or file

by chmod  -R 755 folder name


http://www.cyberciti.biz/faq/how-linux-file-permissions-work/   : file permission  
0
 
LVL 29

Expert Comment

by:fosiul01
ID: 24313208
how to use chown command to change owner shop

http://www.cyberciti.biz/faq/how-to-use-chmod-and-chown-command/   



you can use chgrp commadn to change group owner ship,

0
 
LVL 29

Expert Comment

by:fosiul01
ID: 24313214
sorry too much link , but just have a read

http://www.tuxfiles.org/linuxhelp/fileowner.html

for chown and chgrp for changing file permission
0
Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

 

Author Comment

by:Hekkro
ID: 24313273
Isn't there another way to do it

I'm giving someone access to my webserver, so he can fix some stuff ...I don't think is safe to make him the owner of the whole website.

Maybe create a "support" group with these rights and add this user to this group?

but then again I don't know much about it
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 24313678

Hi,

how about sudo?

With sudo you can allow execution of only the commands that are really needed (with the privileges of any user you define, including root), you can revoke privileges easily, and you can have a log of anything the user does with sudo.

Look at 'man sudo', 'man sudoers', 'man visudo'  to learn more.

wmp
0
 
LVL 14

Expert Comment

by:Monis Monther
ID: 24313932
Why not use ACLs

By using ACLs you can give someone specific permissions regardless of Owner,Group and others

for example you can give Mr. Fix   rwx excusivly for Dirs or Files you want

To implement acls its fairly easy

setfacl -m u:john:rwx /var/www/html/test

This would give user John rwx on the file test without changing anything with chmod or owner or group
Do man setfacl and check examples at the end of the page

To view acl on a file

getfacl filename

Good Luck
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Read about the ways of improving workplace communication.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Simple Linear Regression

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question