(ask)cara membuat file/folder permission lewat terminal

Pertanyaan umum seputar distribusi Ubuntu yang menjadi distro wajib members ubuntu-indonesia.com
User avatar
Newbie_Pinguin
Posts: 28
Joined: 02 Jan 2011, 17:39
Location: depok city

(ask)cara membuat file/folder permission lewat terminal

Postby Newbie_Pinguin » 22 Jan 2011, 05:09

kk dan para mastah saya mo tanya, perintah di terminal untuk mengubah seluruh file&folder permission gimana??
contoh: $ chmod 755 newbie.txt
jika ada 1 folder beserta isinya gimna perintahnya untuk mengubah segaligus smuanya??
trims...
User avatar
lisnux
Posts: 1763
Joined: 02 Jan 2010, 16:26
Location: Samarinda
Contact:

Re: (ask)cara membuat file/folder permission lewat terminal

Postby lisnux » 22 Jan 2011, 05:47

Code: Select all

chmod -R 755 nama_folder


untuk lebih lengkap tentang parameter bisa lihat helpnya

Code: Select all

chmod --help


-cmiiw-
User avatar
shinthux
Posts: 205
Joined: 25 Feb 2010, 20:09
Location: denpasar
Contact:

Re: (ask)cara membuat file/folder permission lewat terminal

Postby shinthux » 22 Jan 2011, 07:00

uda bener tu yg dibilang ma bro lisnux, tp selain pke cr octal yg disaranin ma bro lisnux (yg angka 755 tu) bs jg pke cr symbolic
misal

Code: Select all

 sudo chmod -R +x nama_folder

symbolic
u+x Add execute permission for the owner.

u-x Remove execute permission from the owner.

+x Add execute permission for the owner, group, and world. Equivalent to a+x.

o-rw Remove the read and write permission from anyone besides the owner and group owner.

go=rw Set the group owner and anyone besides the owner to have read and write permission. If either the group owner or world previously had execute permissions, they are removed.

u+x,go=rx Add execute permission for the owner and set the permissions for the group and others to read and execute. Multiple specifications may be separated by commas.


untuk mengubah permission folder beserta seluruh isinya pke option -R seperti yg dikatakan bro lisnux....

CMIIW
User avatar
Arunaru
Posts: 326
Joined: 19 Jan 2011, 13:44
Contact:

Re: (ask)cara membuat file/folder permission lewat terminal

Postby Arunaru » 22 Jan 2011, 08:08

udah fix ternyata! jempol aja deh :p
:yay: :yay: :yay:
User avatar
Newbie_Pinguin
Posts: 28
Joined: 02 Jan 2011, 17:39
Location: depok city

Re: (ask)cara membuat file/folder permission lewat terminal

Postby Newbie_Pinguin » 22 Jan 2011, 14:13

Thanks para mastah :D
User avatar
zuzu_354
Posts: 1
Joined: 21 Jan 2011, 16:55

Re: (ask)cara membuat file/folder permission lewat terminal

Postby zuzu_354 » 22 Jan 2011, 16:27

tq juga para master. .bermanfaat infonya
User avatar
atRhony_abdullah
Posts: 8
Joined: 18 Jun 2013, 05:17
Location: Medan, Indonesia

Re: (ask)cara membuat file/folder permission lewat terminal

Postby atRhony_abdullah » 18 Jun 2013, 08:13

gan letak folder saya di FileSystem/usr/lib/eclipse,

saya mau replace/copy sekaligus file ke folder eclipse itu, tapi gak bisa juga karna permissionnya, gimana itu gan ?

Return to “Pertanyaan Umum”

Who is online

Users browsing this forum: Bing [Bot] and 6 guests