Change Group Ownership of Symbolic Links in Unix or Linux Mainīt grupas Īpašumtiesības Symbolic Links in Unix vai Linux
chgrp can be used to change group ownership of files and directories in almost all UNIX-variant platforms, including Linux such as Fedora Core, Ubunto and etc. However, if you try to change the group membership of a symbolic link, the group ownership of its referenced or linked file is changed instead. chgrp var izmantot, lai mainītu grupas īpašnieku failus un direktorijas gandrīz visās UNIX variantu platformām, tai skaitā Linux, piemēram, Fedora Core, Ubunto uc Taču, ja jūs mēģināt mainīt grupu piederību simbolisko saiti, grupu īpašumtiesības uz tās atsauces vai saistīto failu maina vietā.
This is the default behavior of chgrp command, where dereference option is used by default so that all changes will affect the referent of each symbolic link, rather than the symbolic link itself. Šis ir noklusējuma izturēšanos chgrp komandu, kur dereference variants tiek izmantots pēc noklusējuma, lai visas izmaiņas ietekmēs referents katras simboliskās saites, nevis simboliska saite pati.
To change the group ownership of symbolic link, simply use the -h or –no-dereference flag to the chgrp command. Lai mainītu grupas īpašnieku simboliska saite, vienkārši izmanto-h vai-no-dereference karogu chgrp komandu.
Example: Piemērs:
chgrp -h new_group symbolic_link_name chgrp-h new_group symbolic_link_name
IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: lapa mašīna iztulkot un pasniegts tàds, "kàds tas ir" bez garantijas. Machine translation may be difficult to understand. Mašīntulkošanas var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.
Related Articles Saistītie raksti
- How to Make or Create Symbolic Link in Unix or Linux Kā veikt vai Izveidojiet Simboliskais Saite Unix vai Linux
- Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK Izveidot Simboliskās saites, Hard Saites un Direktorija Krustojumi Vista ar MKLINK
- How to Change or Spoof MAC Address in Windows XP, Vista, Server 2003/2008, Mac OS X, Unix and Linux Kā nomainīt vai mānīšanās MAC adrese Windows XP, Vista, Server 2003/2008, Mac OS X, Unix un Linux
- (Enhance) Concurrent Capable and Big vg Format Volume Group in AIX Unix (Palielināt) vienlaicīgi spēj un Big vg Format Apjoms grupa AIX Unix
- Refresh Linux or Unix Path Environmental Variables with rehash Atsvaidzināt Linux vai Unix Path vides rādītājiem ar rehash
- How to Calculate and Generate MD5 Hash Value in Linux and Unix with md5sum Kā aprēķināt un Sagatavot MD5 Hash Vērtība Linux un Unix ar md5sum
- How to Mount USB Disk Drive in UNIX or Linux Kā Mount USB Disk Drive UNIX vai Linux
- How to Disable Linux and Unix Cron Jobs (Crontab) Email Sending Kā atspējot Linux un Unix Cron Jobs (Crontabula) Email Sending
- Change User Name on Linux Change User Name Linux
- Add Take Ownership Option To Files and Folders Context Menu in Vista Pievienot Take Ownership iespēja failus un mapes Context Menu in Vista










































January 17th, 2009 08:34 Janvāris 17, 2009 08:34
Thanks for the tip. Paldies par tip. I was always frustrated by not being able to change the ownership of symlinks. Man vienmēr bija neapmierināts, jo viņi nespētu mainīt īpašumtiesībām symlinks. Definitely good to know. Noteikti labi zināt.