LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to setup a (home) directory structure for accounting purposes? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-setup-a-home-directory-structure-for-accounting-purposes-916948/)

jpolanco71 12-03-2011 03:32 PM

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?

David the H. 12-03-2011 03:48 PM

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.

jpolanco71 12-03-2011 05:05 PM

Quote:

Originally Posted by jpolanco71 (Post 4541197)
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!

Disillusionist 12-04-2011 06:19 AM

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)?

David the H. 12-04-2011 06:25 AM

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.


All times are GMT -5. The time now is 07:25 PM.