Giving rights to User


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Giving rights to User
# 1  
Old 07-15-2003
Giving rights to User

Hi all,

what does the following lines means?

chown -R root:mysql /usr/local/mysql
chown -R mysql:mysql /usr/local/mysql/data

Something giving rights to user named mysql? or related with root rights? Please explain in detail.

Thanks.
vbs
# 2  
Old 07-15-2003
I think you get this from the MySQL manual, I suppose? I have seen this before.

The chown command simply changes the owner and group of a list of files. Change of access permission is done using chmod instead.

First command: user root, group mysql
Second command: user mysql, group mysql

-R is recursive. That is, apply this to each and every file and directory underneath.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help with user rights (Permission denied)

I have a script that do read data for Munin Graph. My problem is that it have some reading problems, and I do not know how to fix it. script traf.sh (its not the complete script)#!/bin/sh PORT="80" NETDEVICE="eth0" IPTRAFlogdir="/var/log/iptraf" ... (8 Replies)
Discussion started by: Jotne
8 Replies

2. Homework & Coursework Questions

user rights

good evening .. I have a plea, who I can help me with a management application user rights on the files in a Unix / Linux I need for college .. .. and not told us no clue .. thank you (1 Reply)
Discussion started by: alex90
1 Replies

3. UNIX for Dummies Questions & Answers

User Add and Rights

Dears, I want to add a user and give him rights only for a spesific folder and take the files via ftp. The user shouldn't see the other files above or belov his folder. lets say I have "user". my directories: /a /b/d /c when I connect to the system I want this "user" to connect... (3 Replies)
Discussion started by: hubatuwang
3 Replies

4. Solaris

New user question regarding admin rights

I'm trying to install OpenOffice on Solaris 11 but when I click on the setup icon I get an error message telling me that I need to have admin rights. I've tried logging on as SU or ROOT but cannot. I don't see how to grant myself admin rights. How is it done ? I know there are many many... (7 Replies)
Discussion started by: stansaraczewski
7 Replies

5. Solaris

Assign Superuser rights to normal user

Hi, It's actually strange, but Is there any way through which I can assign super user rights to normal user. Actually su/sudo/rbac does solve these but switching id is the problem for an application. For eg: $dladm show-dev insufficient priviliges. Is there any way to get it done ? ... (8 Replies)
Discussion started by: tuxian
8 Replies

6. UNIX for Dummies Questions & Answers

Changing rights without touching user and group?

Hello, I have a small problem and would be happy if someone could help me to find a solution: A machine ("server") makes backups of different computers ("clients") using rsync. Users and groups are keept, so that it's possible to copy them back to the client if required. The number of groups... (3 Replies)
Discussion started by: tracer
3 Replies

7. Shell Programming and Scripting

rights to FTP user

hi i want create a user to ftp (get) files from the 2nd machine. but i want to give specific rights to that user that he can't access only specific files and directories. please suggest (1 Reply)
Discussion started by: dodasajan
1 Replies

8. UNIX for Dummies Questions & Answers

User Access Rights

Hi Folks, My problem is an easy one for the experts here. All my applications run using a user id that creates files with only the following default rights: -rw-r----- I want to modify this user's account such that it creates files that assign read access to the everyone group by default:... (7 Replies)
Discussion started by: umairrahman
7 Replies

9. HP-UX

User rights

I wan to create a user e.g. Tom. whenever a file is created by user Tom or FTP is done using user as Tom, the rights on the file should be 777 (by default). how can I achieve this. Please help. Its very urgent. (1 Reply)
Discussion started by: sharmavr
1 Replies

10. UNIX Desktop Questions & Answers

User rights assingments

Forgive the new ness of this question. However, I have a user's home directory that i would like to give another user rw too. How would I accomplish this. Nevermin I used an acl to accomplish. A little reading goes a long way!!!! (1 Reply)
Discussion started by: niasdad
1 Replies
Login or Register to Ask a Question