How to create a user and folder?

Reply

Join Date: Apr 2008
Posts: 491
Reputation: veledrom is an unknown quantity at this point 
Solved Threads: 0
veledrom veledrom is offline Offline
Posting Pro in Training

How to create a user and folder?

 
0
  #1
Feb 25th, 2009
Hi,
I am new in Linux Ubuntu and want to learn a bit. I have a question, it might be very simple for you. I have only "root" as a user in my system.

1. I want to create a new user called "user_1"
2. I want to create a folder called "project_1" in var/www
3. I want to give "user_1" R+W permisions to "project_1" folder only.
4. I want to do all these in "root@ubuntu:/home/ubuntu#" command line

Thank you in advance.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 17
Reputation: vimotaru is an unknown quantity at this point 
Solved Threads: 1
vimotaru vimotaru is offline Offline
Newbie Poster

Re: How to create a user and folder?

 
0
  #2
Feb 27th, 2009
To create a new user you need to use useradd (see the help file to do it properly).
To create a folder use mkdir with root and use chown to change the propietary user of the folder.
Use chmod 666 /var/www/project_1 to change permissions (RW to all users).

If you want the user has access only to that folder, you must maintain permissions for other users.

Anyway all this can be found with a simple search in google/yahoo.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 65
Reputation: muta is an unknown quantity at this point 
Solved Threads: 0
muta's Avatar
muta muta is offline Offline
Junior Poster in Training

Re: How to create a user and folder?

 
0
  #3
Mar 16th, 2009
I use the man page or www.google.com/linux.

They are both handy.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Getting Started and Choosing a Distro Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC