Operating System - HP-UX
1753930 Members
10017 Online
108810 Solutions
New Discussion

how to give permission to users, group and owers

 
Anit Jha
Occasional Advisor

how to give permission to users, group and owers

Hi all,
i m having hp-ux 11i, can sombody tell me how to give the permission to user,groups and owner
thanks in advance

 

P.S. This thread has been moved from  HP-UX Technical Documentation to HP-UX > sysadmin. -HP Forum Moderator

4 REPLIES 4
Muthukumar_5
Honored Contributor

Re: how to give permission to users, group and owers

You can give permissions to file / directory with chmod command.

chmod u+r

u+r - read permission (4)
u+w - write permission (2)
u+x - execution permission (1)

chmod 700 file will give -rwx------ permission to file.

Like that it will be for group and others.

chmod g+ file
chmod o+ file

If you view ls -l , it gives permission in first field. It is as, 3bitforuser 3bitforgroup 3bitfor owner.

-rw-rw-rw- (666 permission file)
drwxrw-rw- (766 permission directory)

More details, refere, chmod(1) and chmod(2) man pages.

hth.
Easy to suggest when don't know about the problem!
S.Arunkumar
Trusted Contributor

Re: how to give permission to users, group and owers

Hi Anit


The command used to give the permission is chmod.But before that for having a better knowledge about file permission you can verify the attached man page of chmod

Regards
S.Arunkumar
Kasper Hedensted
Trusted Contributor

Re: how to give permission to users, group and owers

Hi,

You can change file-permissions with chmod:

there are two ways of using it: with symbolic or numeric

example
chmod g+rwx filename
will give read/write/execute to the group,

or use numeric
chmod 775 filename
which will grant read/write/execute to user and group + read/execute to other

each number represent user/group/other

check out the man-page for chmod

Cheers,
Kasper
Anit Jha
Occasional Advisor

Re: how to give permission to users, group and owers

found ok