File Permission in Linux

Need to change the user permissions i.e
$ touch myfile
$ls -l myfile

-rw-r--r--

$chmod u=+x myfile

Here I also want to give the execute prmission to the user but the list command shows (Read & Write also removed why ?)
$ls -l
----r--r--

Yes the other way is to use the number(Octal) i.e
$chmod 700 myfile

$ls -l myfile

-rwx------

By using 744 with chmod it can show me desire desire result.  How can I adjuct it by using Owner,Group & Others

Example chmod u=+r,+w,+x
So that I can view the the user have rwx permission.
 

Why do u use chmod command as chmod u=+x that's a bit strange syntax. Don't you get any errors when you do that??
If you just want to add execute permission on file use

chmod u+x filename

and you will see that x is ADDED and nothing is removed.

Have a Linux Problem
Linux Forum - Do you have a Linux Question?

Linux Books
Linux Certification, System Administration, Programming, Networking Books

Linux Home: Linux System Administration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.
The site www.gotothings.com is in no way affiliated with or endorsed by any company listed at this site.
Any unauthorised copying or mirroring is prohibited.