| | |
How to create a user and folder?
![]() |
•
•
Join Date: Apr 2008
Posts: 491
Reputation:
Solved Threads: 0
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.
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.
•
•
Join Date: Oct 2008
Posts: 17
Reputation:
Solved Threads: 1
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.
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.
![]() |
Similar Threads
- folder option in missing in win xp (Windows NT / 2000 / XP)
- Single user receiving new mail in OWA but not Outlook 2003 (Windows NT / 2000 / XP)
- ICON ON BOTTOM of SCREEN for DESKTOP (Windows NT / 2000 / XP)
- Problem with new XP systems getting corrupt user profiles (Windows NT / 2000 / XP)
- Can php allow me to create whatever.homepage.com address (PHP)
- On Man, One Machine and 5 User Accounts (Windows NT / 2000 / XP)
- Sharing Program folder in peer to peer network (Networking Hardware Configuration)
- Missing User Shell Folder (Windows NT / 2000 / XP)
Other Threads in the Getting Started and Choosing a Distro Forum
- Previous Thread: Writing permission to /var/www/
- Next Thread: How to configure dchp in debian
| Thread Tools | Search this Thread |
age-related baremetal chrome cio cloudcomputing code commercial computers crystalballsunday developers development distributions distro dsl elderly embedded google http://expertcore.org/ innovations jauntyjackalope kernel library linus linux microsoft multi-core netgear newbies openoffice.org operating operatingsystems parallel performance processing redhat routers smp studios system systembuilders systemintegrators terminalservices thecloud thinclients tools ubuntu users virtualization vmware webbased wikis windows xenon





