November 22, 2024, 04:03:49 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: File Creation and Permission  (Read 6566 times)

Offline jtk1964

  • New Member
  • Posts: 1
File Creation and Permission
« on: December 05, 2008, 04:55:34 AM »
In the /Docs directory, create three files: file1 file2 and file3. Create the files as user and give the Tech group read and write to all files, and all other users just the read permission.

I created 3 files in the doc directory and changed the create to user instead of root in the  Permissions? ???  Is this right??????

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: File Creation and Permission
« Reply #1 on: December 06, 2008, 08:44:52 AM »
Frankly.. I did not get it, may be you can elaborate a little more ie. like what you need it for ?

Offline unixmen

  • Linux Noob !
  • *
  • Posts: 24
Re: File Creation and Permission
« Reply #2 on: January 06, 2009, 01:13:16 PM »
chgrp works pretty much the same way as chown does, except it changes the file's user group instead of the owner, of course.
$ chgrp usergroup somefile
After issuing this command, the file somefile will be owned by a user group usergroup. Although the file's group has changed to usergroup, the file's owner will still be the same.


Regards
  team