BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 3rd, 2002, 11:02 PM
yorktown yorktown is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 14 yorktown User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Special permissions for user

I have a server and I need to add a new user who will have telnet access to ONLY 1 or 2 MYSQL databases and not the others.

He also will have FTP access as well.

I don't want to give him my username and password for obvious security reasons.

I was told that a new user can be set up with special permissions, but I don't know exactly how to do it.


I am running the following:

FreeBSD (latest version)
MySQL (latest version)
Apache (latest version)

Please let me know how to make a special setup for this user.

Regards,

Reply With Quote
  #2  
Old February 3rd, 2002, 11:33 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Just RTFM via man 8 adduser. Then he should be able to telnet/ftp immediately. For MySQL, you need to add another user (him).

You keep saying special permissions in your duplicated posts (in other forums), how special exactly?

Reply With Quote
  #3  
Old February 4th, 2002, 08:41 PM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 45 m 36 sec
Reputation Power: 14
For the MySQL side - from the manual:

Quote:
You can add new users by issuing GRANT statements:

shell> mysql --user=root mysql
mysql> GRANT ALL PRIVILEGES ON *.* TO monty@localhost
IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
mysql> GRANT ALL PRIVILEGES ON *.* TO monty@"%"
IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
mysql> GRANT RELOAD,PROCESS ON *.* TO admin@localhost;
mysql> GRANT USAGE ON *.* TO dummy@localhost;


See here: http://www.mysql.com/doc/A/d/Adding_users.html
cf: http://www.mysql.com/udmsearch/sear...?q=add+new+user

To only allow a user, monty, access to the db called 'montydb' just do:
Code:
mysql> GRANT ALL PRIVILEGES ON montydb.* TO monty@localhost /
           IDENTIFIED BY 'some_pass' WITH GRANT OPTION;

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Special permissions for user

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap