LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Creating Files as Users (https://www.linuxquestions.org/questions/linux-general-1/creating-files-as-users-633144/)

Counal1 04-04-2008 07:48 PM

Creating Files as Users
 
I am learning Redhat Linux now and installed it in my machine. I
created four user ids (user1, user2 etc). Now i want to create files
under these user ids. I am not sure how to proceed on that. can anyone
help?.
Thanks in adv.

ehawk 04-05-2008 01:11 AM

Well, the least confusing way would be to simply open the web browser, find a web page and use the menu commands at the top of the browser window to save a web page. Depending on which user you are logged in as, it should save to the home directory of that user, I think. Then you can open up a terminal window and enter "ls" at the command line. It should list the file you saved (probably .html file).

If you know how use the menu to open up a text editor, you could type something then save it . You should then see that file also when you are in your home directory and enter "ls".

http://www.cyberciti.biz/faq/create-...nix-from-bash/

http://www.pixelbeat.org/cmdline.html

XavierP 04-05-2008 01:32 AM

Moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.

trickykid 04-06-2008 09:24 AM

Login as user, then simply do:

touch file1 file2 file3

That's how you would create empty files under each user. What exactly are you trying to accomplish? Also, use better thread titles in the future, your's is utter crap and doesn't describe your actual question.

Counal1 04-07-2008 04:38 PM

Thanks. I do not know how to login as user1 in linux machine.

ehawk 04-07-2008 06:43 PM

ok, I thought this was how you created user accounts in red hat linux:

http://www.redhat.com/docs/manuals/l...grps-proc.html

Then I thought you could log out and log back in as the new user with the newly created password.


All times are GMT -5. The time now is 05:56 AM.