![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| File creation and auto-group assign | dhinge | UNIX for Dummies Questions & Answers | 1 | 04-15-2008 10:00 AM |
| File Owner/Group through Shell Script | rahulrathod | Shell Programming and Scripting | 1 | 02-26-2008 11:45 AM |
| permission, owner and group | pascalbout | Shell Programming and Scripting | 2 | 01-14-2006 08:47 AM |
| Can't change owner and group of a linux file | bache_gowda | UNIX for Dummies Questions & Answers | 7 | 06-26-2003 07:08 PM |
| owner and group in Linux | lapnguyen | UNIX for Dummies Questions & Answers | 1 | 07-16-2002 07:55 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to set the name of the group and the owner while creation of the file?
How to set the name of the group and the owner while creation of the file?
-rwxrwxr-x 1 root sys 1202 Dec 5 2002 abc.awk like here i need to set the name of root and sys to xxx xxx Any help is appreciated. Thanks. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
If fixing the owner afterwards in not acceptable, you need to be the right user and group when creating the file. Use su and sg to set the correct user and group for running the process which creates the file.
Code:
su - xxx -c makeabc |
|
#3
|
|||
|
|||
|
Thanks for the help.
|
|||
| Google The UNIX and Linux Forums |