943,884 Members | Top Members by Rank

Ad:
Feb 25th, 2009
0

How to create a user and folder?

Expand Post »
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.
Similar Threads
Reputation Points: 38
Solved Threads: 0
Master Poster
veledrom is offline Offline
724 posts
since Apr 2008
Feb 27th, 2009
0

Re: How to create a user and folder?

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.
Reputation Points: 11
Solved Threads: 1
Newbie Poster
vimotaru is offline Offline
17 posts
since Oct 2008
Mar 16th, 2009
0

Re: How to create a user and folder?

I use the man page or www.google.com/linux.

They are both handy.
Reputation Points: 12
Solved Threads: 0
Junior Poster in Training
muta is offline Offline
67 posts
since Jun 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Getting Started and Choosing a Distro Forum Timeline: Problem With ubuntu 8.10
Next Thread in Getting Started and Choosing a Distro Forum Timeline: How to configure dchp in debian





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC