Change Group Ownership of Symbolic Links in Unix or Linux Skupina Change Lastništvo simbolne povezave v Unix ali 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 se lahko uporablja za spremembo lastništva skupine datotek in imenikov v skoraj vseh UNIX-različico platforme, vključno z Linux kot Fedora Core, Ubunto in itd Vendar, če želite spremeniti članstvo v skupini za simbolično povezavo, skupina lastništvo svoje navedeni ali datoteko se spremeni namesto tega.
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. To je privzeto vedenje za chgrp ukaza, kjer se dereference možnost uporablja privzeto, tako da bodo vse spremembe vplivajo referent vsake simbolne povezave, ne pa simbolne povezave sam.
To change the group ownership of symbolic link, simply use the -h or –no-dereference flag to the chgrp command. Če želite spremeniti skupino lastništva simbolne povezave, preprosto uporabite-h ali-no-dereference zastavo chgrp ukaz.
Example: Primer:
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. POMEMBNO: stran je stroj prevod in če "kot je" brez garancije. Machine translation may be difficult to understand. Strojno prevajanje je lahko težko razumeti. Please refer to Prosimo, da original English article original angleški člen whenever possible. kadar je to mogoče.
Related Articles Povezani članki
- How to Make or Create Symbolic Link in Unix or Linux Kako Znamka ali Ustvarite Simbolni povezava v Unix ali Linux
- Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK Create Symbolic Links, Hard povezave in Directory križišča v razgled s MKLINK
- How to Change or Spoof MAC Address in Windows XP, Vista, Server 2003/2008, Mac OS X, Unix and Linux Kako v sprememba ali prevara Škot Naslov v operacijskem sistemu Windows XP, Vista, Server 2003/2008, Mac OS X, Unix in Linux
- (Enhance) Concurrent Capable and Big vg Format Volume Group in AIX Unix (Stopnjevati) Sočasno capable in Big vg Format zvezek skupina v AIX Unix
- Refresh Linux or Unix Path Environmental Variables with rehash Osvežiti Linux ali Unix Pot okoljske spremenljivke z rehash
- How to Calculate and Generate MD5 Hash Value in Linux and Unix with md5sum Kako Izračunajte in Ustvarite MD5 haše vrednost v Linux in Unix s md5sum
- How to Mount USB Disk Drive in UNIX or Linux Kako Mount USB Disk Drive v UNIX ali Linux
- How to Disable Linux and Unix Cron Jobs (Crontab) Email Sending Kako onesposobiti Linux in Unix Cron Jobs (crontab) E-pošta Pošiljanje
- Change User Name on Linux Sprememba uporabnik ime naprej Linux
- Add Take Ownership Option To Files and Folders Context Menu in Vista Dodaj zalotiti lastništvo predkupna pravica v pila ter zložljiv binokel zveza jedilnik v razgled










































January 17th, 2009 08:34 17. januar 2009 08:34
Thanks for the tip. Hvala za nasvet. I was always frustrated by not being able to change the ownership of symlinks. Zmeraj sem bil uničen ga ne bi mogli spremeniti lastništva symlinks. Definitely good to know. Definitivno dobro vedeti.