[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71HQ32ZP5GY95JNDD7V8FR2":3,"skill-same:01M71HQ32ZP5GY95JNDD7V8FR2":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":28,"linkOnly":29,"markdownContent":30,"markdownBody":31,"frontMatter":32,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":43,"install":44,"resources":57},"01M71HQ32ZP5GY95JNDD7V8FR2","user-permissions",null,"Linux user and permission management","JSGforever\u002Fskillguard","JSGforever","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F85541948?v=4","01M71FQD3E132VMR5F4TAYX3YS","01M71FQD4DYW0XJ4XQ4YQH75Y9",2,"GPL-3.0","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__chaterm--user-permissions\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27],"user permissions","permissions","user","linux","group","terminal","permission","management","sudo","ACL","2026-11-10 10:12:30",false,"---\nname: user-permissions\ndescription: Linux user and permission management\nversion: 1.0.0\nauthor: terminal-skills\ntags: [linux, user, group, sudo, acl, permissions]\n---\n\n# User and Permission Management\n\n## Overview\nLinux user management, group management, sudo configuration, ACL permissions and other skills.\n\n## User Management\n\n### View Users\n```bash\n# Current user\nwhoami\nid\n\n# User information\nid username\nfinger username\n\n# All users\ncat \u002Fetc\u002Fpasswd\ngetent passwd\n\n# Logged in users\nwho\nw\nlast                                # Login history\n```\n\n### User Operations\n```bash\n# Create user\nuseradd username\nuseradd -m -s \u002Fbin\u002Fbash username    # Create home directory, specify shell\nuseradd -G group1,group2 username   # Specify supplementary groups\n\n# Modify user\nusermod -aG groupname username      # Add to group\nusermod -s \u002Fbin\u002Fzsh username        # Change shell\nusermod -L username                 # Lock user\nusermod -U username                 # Unlock user\n\n# Delete user\nuserdel username\nuserdel -r username                 # Also delete home directory\n\n# Change password\npasswd username\npasswd -l username                  # Lock password\npasswd -u username                  # Unlock password\nchage -l username                   # View password policy\n```\n\n## Group Management\n\n### View Groups\n```bash\n# User's groups\ngroups username\nid -Gn username\n\n# All groups\ncat \u002Fetc\u002Fgroup\ngetent group\n\n# Group members\ngetent group groupname\n```\n\n### Group Operations\n```bash\n# Create group\ngroupadd groupname\ngroupadd -g 1001 groupname          # Specify GID\n\n# Modify group\ngroupmod -n newname oldname         # Rename\n\n# Delete group\ngroupdel groupname\n\n# Manage group members\ngpasswd -a username groupname       # Add user\ngpasswd -d username groupname       # Remove user\ngpasswd -M user1,user2 groupname    # Set member list\n```\n\n## sudo Configuration\n\n### Basic Usage\n```bash\n# Execute as root\nsudo command\nsudo -i                             # Switch to root shell\nsudo -u username command            # Execute as another user\n\n# View permissions\nsudo -l\n```\n\n### sudoers Configuration\n```bash\n# Edit sudoers (recommended method)\nvisudo\n\n# Or edit files under \u002Fetc\u002Fsudoers.d\u002F\nvisudo -f \u002Fetc\u002Fsudoers.d\u002Fusername\n```\n\n### Common Configuration Examples\n```bash\n# \u002Fetc\u002Fsudoers.d\u002Fusername\n\n# Full privileges\nusername ALL=(ALL:ALL) ALL\n\n# No password required\nusername ALL=(ALL) NOPASSWD: ALL\n\n# Specific commands\nusername ALL=(ALL) \u002Fusr\u002Fbin\u002Fsystemctl restart nginx\n\n# Specific commands without password\nusername ALL=(ALL) NOPASSWD: \u002Fusr\u002Fbin\u002Fdocker\n\n# Group privileges\n%groupname ALL=(ALL) ALL\n```\n\n## ACL Permissions\n\n### View ACL\n```bash\ngetfacl file\ngetfacl -R dir                      # Recursive view\n```\n\n### Set ACL\n```bash\n# Set user permissions\nsetfacl -m u:username:rwx file\nsetfacl -m u:username:rx dir\n\n# Set group permissions\nsetfacl -m g:groupname:rx file\n\n# Set default ACL (new files inherit)\nsetfacl -d -m u:username:rwx dir\n\n# Recursive set\nsetfacl -R -m u:username:rx dir\n\n# Remove ACL\nsetfacl -x u:username file          # Remove specific\nsetfacl -b file                     # Remove all\n```\n\n## Special Permissions\n\n### SUID\u002FSGID\u002FSticky\n```bash\n# SUID (4) - Execute as file owner\nchmod u+s file\nchmod 4755 file\n\n# SGID (2) - Execute as file group\u002Fdirectory inherits group\nchmod g+s file\nchmod 2755 dir\n\n# Sticky (1) - Only owner can delete\nchmod +t dir\nchmod 1777 dir\n\n# View\nls -la\n# -rwsr-xr-x  SUID\n# -rwxr-sr-x  SGID\n# drwxrwxrwt  Sticky\n```\n\n## Common Scenarios\n\n### Scenario 1: Create Developer User\n```bash\n# Create user and group\ngroupadd developers\nuseradd -m -s \u002Fbin\u002Fbash -G developers devuser\n\n# Set password\npasswd devuser\n\n# Configure sudo\necho \"devuser ALL=(ALL) NOPASSWD: \u002Fusr\u002Fbin\u002Fdocker, \u002Fusr\u002Fbin\u002Fsystemctl\" > \u002Fetc\u002Fsudoers.d\u002Fdevuser\nchmod 440 \u002Fetc\u002Fsudoers.d\u002Fdevuser\n```\n\n### Scenario 2: Shared Directory Permissions\n```bash\n# Create shared directory\nmkdir \u002Fshared\ngroupadd shared\nchown root:shared \u002Fshared\nchmod 2775 \u002Fshared                  # SGID ensures new files inherit group\n\n# Add users to group\nusermod -aG shared user1\nusermod -aG shared user2\n```\n\n### Scenario 3: Restrict User to Specific Commands\n```bash\n# \u002Fetc\u002Fsudoers.d\u002Flimited-user\nlimited ALL=(ALL) NOPASSWD: \u002Fusr\u002Fbin\u002Fsystemctl status *, \u002Fusr\u002Fbin\u002Fjournalctl\n```\n\n## Troubleshooting\n\n| Problem | Solution |\n|---------|----------|\n| sudo permission denied | Check `\u002Fetc\u002Fsudoers.d\u002F` configuration |\n| User cannot login | Check shell, password lock status |\n| Group permissions not working | Re-login or `newgrp groupname` |\n| ACL not working | Check if filesystem supports ACL |\n","# User and Permission Management\n\n## Overview\nLinux user management, group management, sudo configuration, ACL permissions and other skills.\n\n## User Management\n\n### View Users\n```bash\n# Current user\nwhoami\nid\n\n# User information\nid username\nfinger username\n\n# All users\ncat \u002Fetc\u002Fpasswd\ngetent passwd\n\n# Logged in users\nwho\nw\nlast                                # Login history\n```\n\n### User Operations\n```bash\n# Create user\nuseradd username\nuseradd -m -s \u002Fbin\u002Fbash username    # Create home directory, specify shell\nuseradd -G group1,group2 username   # Specify supplementary groups\n\n# Modify user\nusermod -aG groupname username      # Add to group\nusermod -s \u002Fbin\u002Fzsh username        # Change shell\nusermod -L username                 # Lock user\nusermod -U username                 # Unlock user\n\n# Delete user\nuserdel username\nuserdel -r username                 # Also delete home directory\n\n# Change password\npasswd username\npasswd -l username                  # Lock password\npasswd -u username                  # Unlock password\nchage -l username                   # View password policy\n```\n\n## Group Management\n\n### View Groups\n```bash\n# User's groups\ngroups username\nid -Gn username\n\n# All groups\ncat \u002Fetc\u002Fgroup\ngetent group\n\n# Group members\ngetent group groupname\n```\n\n### Group Operations\n```bash\n# Create group\ngroupadd groupname\ngroupadd -g 1001 groupname          # Specify GID\n\n# Modify group\ngroupmod -n newname oldname         # Rename\n\n# Delete group\ngroupdel groupname\n\n# Manage group members\ngpasswd -a username groupname       # Add user\ngpasswd -d username groupname       # Remove user\ngpasswd -M user1,user2 groupname    # Set member list\n```\n\n## sudo Configuration\n\n### Basic Usage\n```bash\n# Execute as root\nsudo command\nsudo -i                             # Switch to root shell\nsudo -u username command            # Execute as another user\n\n# View permissions\nsudo -l\n```\n\n### sudoers Configuration\n```bash\n# Edit sudoers (recommended method)\nvisudo\n\n# Or edit files under \u002Fetc\u002Fsudoers.d\u002F\nvisudo -f \u002Fetc\u002Fsudoers.d\u002Fusername\n```\n\n### Common Configuration Examples\n```bash\n# \u002Fetc\u002Fsudoers.d\u002Fusername\n\n# Full privileges\nusername ALL=(ALL:ALL) ALL\n\n# No password required\nusername ALL=(ALL) NOPASSWD: ALL\n\n# Specific commands\nusername ALL=(ALL) \u002Fusr\u002Fbin\u002Fsystemctl restart nginx\n\n# Specific commands without password\nusername ALL=(ALL) NOPASSWD: \u002Fusr\u002Fbin\u002Fdocker\n\n# Group privileges\n%groupname ALL=(ALL) ALL\n```\n\n## ACL Permissions\n\n### View ACL\n```bash\ngetfacl file\ngetfacl -R dir                      # Recursive view\n```\n\n### Set ACL\n```bash\n# Set user permissions\nsetfacl -m u:username:rwx file\nsetfacl -m u:username:rx dir\n\n# Set group permissions\nsetfacl -m g:groupname:rx file\n\n# Set default ACL (new files inherit)\nsetfacl -d -m u:username:rwx dir\n\n# Recursive set\nsetfacl -R -m u:username:rx dir\n\n# Remove ACL\nsetfacl -x u:username file          # Remove specific\nsetfacl -b file                     # Remove all\n```\n\n## Special Permissions\n\n### SUID\u002FSGID\u002FSticky\n```bash\n# SUID (4) - Execute as file owner\nchmod u+s file\nchmod 4755 file\n\n# SGID (2) - Execute as file group\u002Fdirectory inherits group\nchmod g+s file\nchmod 2755 dir\n\n# Sticky (1) - Only owner can delete\nchmod +t dir\nchmod 1777 dir\n\n# View\nls -la\n# -rwsr-xr-x  SUID\n# -rwxr-sr-x  SGID\n# drwxrwxrwt  Sticky\n```\n\n## Common Scenarios\n\n### Scenario 1: Create Developer User\n```bash\n# Create user and group\ngroupadd developers\nuseradd -m -s \u002Fbin\u002Fbash -G developers devuser\n\n# Set password\npasswd devuser\n\n# Configure sudo\necho \"devuser ALL=(ALL) NOPASSWD: \u002Fusr\u002Fbin\u002Fdocker, \u002Fusr\u002Fbin\u002Fsystemctl\" > \u002Fetc\u002Fsudoers.d\u002Fdevuser\nchmod 440 \u002Fetc\u002Fsudoers.d\u002Fdevuser\n```\n\n### Scenario 2: Shared Directory Permissions\n```bash\n# Create shared directory\nmkdir \u002Fshared\ngroupadd shared\nchown root:shared \u002Fshared\nchmod 2775 \u002Fshared                  # SGID ensures new files inherit group\n\n# Add users to group\nusermod -aG shared user1\nusermod -aG shared user2\n```\n\n### Scenario 3: Restrict User to Specific Commands\n```bash\n# \u002Fetc\u002Fsudoers.d\u002Flimited-user\nlimited ALL=(ALL) NOPASSWD: \u002Fusr\u002Fbin\u002Fsystemctl status *, \u002Fusr\u002Fbin\u002Fjournalctl\n```\n\n## Troubleshooting\n\n| Problem | Solution |\n|---------|----------|\n| sudo permission denied | Check `\u002Fetc\u002Fsudoers.d\u002F` configuration |\n| User cannot login | Check shell, password lock status |\n| Group permissions not working | Re-login or `newgrp groupname` |\n| ACL not working | Check if filesystem supports ACL |\n",{"name":5,"tags":33,"author":35,"version":36,"description":7},[21,20,22,26,34,19],"acl","terminal-skills","1.0.0","main","f2ec4b3b9133d34eeaf9b38e4b0a97e8e5705a7f","benchmarks\u002Ffinal\u002Fskills\u002Fasset1__chaterm--user-permissions",0,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard","https:\u002F\u002Fgithub.com\u002FJSGforever","2026-08-29 18:27:56",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add JSGforever\u002Fskillguard --skill user-permissions",{"tool":50,"command":51},"bunx","bunx skills add JSGforever\u002Fskillguard --skill user-permissions",{"tool":53,"command":54},"pnpm","pnpm dlx skills add JSGforever\u002Fskillguard --skill user-permissions","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__chaterm--user-permissions\u002FSKILL.md",true,[],[59,85,96,123,142,162],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":28},"01M71HY2SNXBA9Q00WZDTZQ31Z","skillguard-codex-scanner","Hybrid deterministic+LLM agent-skill security scanner. Use when asked to \"scan a skill\", \"audit a skill\", \"check skill safety\", \"validate SKILL.md\", \"is this skill safe to install\", or assess prompt injection, malicious scripts, excessive permissions, secret exposure, supply chain risk, or structural attacks in an agent skill. Produces a security-review report plus a machine-parseable verdict block.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fsrc\u002Fskillguard\u002Fstatic_scanner\u002Fskillguard-codex-scanner\u002FSKILL.md",[],[66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,19,81,82,83,84],"scanner","skillguard codex scanner","skillguard","codex","chain","skill security","security-review","review report","structural","secret","prompt injection","security scanner","when","review","malicious","exposure","audit","scripts","safe",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":89,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":28},"01M71HY0SPKTT3S27BC2HPAC5M","data-exfiltrator","Analyzes data files","MIT","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Fsmoke-one-skill\u002Fasset1__cisco-ai-defense--data-exfiltrator\u002FSKILL.md",[],[93,94,95],"data","data exfiltrator","files",{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":28},"01M71HXVS9EMN44BGDW215FZ72","real-time-collaboration-engine","Build real-time collaborative editing with WebSockets, OT\u002FCRDT conflict resolution, and presence awareness. Implements cursor tracking, optimistic updates, and offline sync. Use for collaborative editors, whiteboards, video editing. Activate on \"real-time collaboration\", \"WebSocket sync\", \"multiplayer editing\", \"CRDT\", \"presence awareness\". NOT for simple chat, request-response APIs, or single-user apps.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--real-time-collaboration-engine\u002FSKILL.md",[],[103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122],"time","real time collaboration engine","real time collaboration","collaboration","engine","real time","Video","reliability","video editing","performance","conflict resolution","presence","access","apps","updates","Bash","activate","optimizer","react","streaming",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":28},"01M71HXP6CTY4KFN0QVMMN0V7J","react-performance-optimizer","Optimize React apps for 60fps performance. Implements memoization, virtualization, code splitting, bundle optimization. Use for slow renders, large lists, bundle bloat. Activate on \"React performance\", \"slow render\", \"useMemo\", \"bundle size\", \"virtualization\". NOT for backend optimization, non-React frameworks, or premature optimization.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--react-performance-optimizer\u002FSKILL.md",[],[112,130,120,121,131,132,133,134,135,136,103,137,138,116,118,139,119,122,140,141],"react performance optimizer","react performance","performance optimizer","app","nextjs","expert","re","render","2025","code","router","strategies",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":28},"01M71HXH7QXSQB4QTDZ7SP7YXQ","llm-streaming-response-handler","Build production LLM streaming UIs with Server-Sent Events, real-time token display, cancellation, error recovery. Handles OpenAI\u002FAnthropic\u002FClaude streaming APIs. Use for chatbots, AI assistants, real-time text generation. Activate on \"LLM streaming\", \"SSE\", \"token stream\", \"chat UI\", \"real-time AI\". NOT for batch processing, non-streaming APIs, or WebSocket bidirectional chat.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--llm-streaming-response-handler\u002FSKILL.md",[],[149,122,150,151,152,153,112,103,154,155,156,118,119,120,157,121,158,159,160,161],"llm streaming response handler","handler","error","processing","retry","chat ui","error recovery","critical","batch","display","text","server","read",{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":28},"01M71HXCB0E1YRKYW1Y8T0Y106","github-actions-pipeline-builder","Build production CI\u002FCD pipelines with GitHub Actions. Implements matrix builds, caching, deployments, testing, security scanning. Use for automated testing, deployments, release workflows. Activate on \"GitHub Actions\", \"CI\u002FCD\", \"workflow\", \"deployment pipeline\", \"automated testing\". NOT for Jenkins\u002FCircleCI, manual deployments, or non-GitHub repositories.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--github-actions-pipeline-builder\u002FSKILL.md",[],[169,170,171,172,173,174,175,110,135,176,177,178,119,141,179,161,180,181,182,183],"github actions pipeline builder","actions","github actions","pipeline builder","github","builder","pipeline","testing","ci","workflows","run","release","write","edit","git"]