LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 03: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, 03:48 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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, 05: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, 06:19 AM   #4
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,036

Rep: Reputation: 96
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, 06:25 AM   #5
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:18 AM
Home Jail Folder Structure like Gobolinux Directory Structure luispt Linux - General 3 07-26-2008 07:46 PM
Home accounting software davholla Linux - Software 2 06-19-2008 07: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 07:16 AM
/home directory structure question Dswissmiss Linux - General 2 09-29-2004 12:54 PM


All times are GMT -5. The time now is 08:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration