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 12-03-2011, 02:32 PM   #1
jpolanco71
LQ Newbie
 
Registered: Dec 2011
Location: Upland CA
Distribution: Ubuntu & Fedora
Posts: 2

Rep: Reputation: Disabled
How to setup a (home) directory structure for accounting purposes?


How do I allow a user or users to create a directory through a bash script?
 
Old 12-03-2011, 02:48 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Please use more descriptive thread titles. "bash" doesn't really tell us anything about what kind of question it is.

And could you explain in more detail please? What do you mean by "allow"? What do you want to do exactly? What have you tried to do so far, and what were the results?

To create a directory you use the mkdir command. But whether you can actually do it depends primarily on the permissions of the containing directory.
 
Old 12-03-2011, 04:05 PM   #3
jpolanco71
LQ Newbie
 
Registered: Dec 2011
Location: Upland CA
Distribution: Ubuntu & Fedora
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jpolanco71 View Post
How do I allow a user or users to create a directory through a bash script?
I need to set up a directory structure for a class assignment. i need to create a directory structure for a new accountant that is organized to house the following items( note: i only need to create the directory structure for this deliverable. it is not necessary to create programs or any of the items that the new accountant will house in these directories): *the program files for the accounting system * Data files for accounts recievable, accounts payable and general ledger * Business reports * Rich text files................... i need 1 script for users n 1 for admin. i dont know how to do any of this, but I would love for you guys to teach me. Thanks!
 
Old 12-04-2011, 05:19 AM   #4
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
What have you covered in your class?

Please note that we are not here to do your homework for you, but may well point out where you are going wrong.

If you break the task down into it's component parts it becomes easier.

Why do you need a seperate script for admin? How are you determining whether a user is a standard user or admin user (assume this does not mean "root" user)?
 
Old 12-04-2011, 05:25 AM   #5
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
It's still not clear to me exactly where your problem lies. Again, what have you tried so far? Have you even looked at the documentation for mkdir (man mkdir) yet? Are you trying to do something and getting an error? If so, then post the command and the error.

The more details you give about your problem, the better we can help you. But do be aware that we will try to guide you when you have problems, but we won't do your homework for you. You have to do the actual work yourself or else you won't learn anything.
 
  


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
Convert directory structure from long file names in Linux to DOS 8.3 structure? manorina Linux - Software 5 09-12-2009 09:18 AM
Home Jail Folder Structure like Gobolinux Directory Structure luispt Linux - General 3 07-26-2008 06:46 PM
Home accounting software davholla Linux - Software 2 06-19-2008 06:49 AM
LXer: How to setup a Dual boot system with Debian and Mandriva sharing /home directory LXer Syndicated Linux News 0 06-04-2007 06:16 AM
/home directory structure question Dswissmiss Linux - General 2 09-29-2004 11:54 AM

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

All times are GMT -5. The time now is 03:38 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