LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-22-2010, 05:31 PM   #1
CosmicSea
LQ Newbie
 
Registered: Oct 2009
Posts: 14

Rep: Reputation: 0
user permissions


I am using ubuntu and im trying to figure out how to add a user and give it read and write access to one file on the entire server only. can anybody help me?
 
Old 01-22-2010, 07:11 PM   #2
antegallya
Member
 
Registered: Jun 2008
Location: Belgium
Distribution: Debian
Posts: 109

Rep: Reputation: 42
Hello

To add an user use add user (see man adduser for details)
Code:
adduser username
Do you want the user to be able to log in ? You may don't want to create a home directory for it, so you may be interested in the --no-create-home option.
Then use chmod and chown to set the permissions. Something like (see man chown and man chmod for details) :
Code:
chown username filename
chmod u+rw filename
Note that you won't have only one file whith read write access for the user on the whole server, indeed there are world readable/writable files (wanting to give access to only one file on the whole server for an user seems odd to me)

Hope it helps.
 
Old 01-23-2010, 07:05 AM   #3
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
Quote:
Originally Posted by CosmicSea View Post
I am using ubuntu and im trying to figure out how to add a user and give it read and write access to one file on the entire server only. can anybody help me?
Follow antegallya's instructions.

Search first before posting.
 
  


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
how to automount usb drives with user owner and user r/w permissions mike11 Linux - Newbie 1 11-19-2009 02:59 PM
Giving user 'www-data' same permissions as normal user MikeOfAustin Linux - Software 5 06-08-2007 02:50 AM
user permissions bountyhunter Linux - Newbie 3 10-17-2005 09:04 PM
user permissions mark_alfred Debian 7 09-10-2005 08:18 PM
user permissions Hmmyah Linux - Newbie 4 12-11-2003 08:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:26 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
Open Source Consulting | Domain Registration