Run commands
Shell runs the command in the environment you chose and reports the real exit code.
Gridberry helps you add user permissions to folder linux by running the commands on a server you administer and showing every result in a card. It covers account creation, group membership and sudo rules, and in Ask first mode nothing that changes a file or an account runs before you approve it.
Shell runs the command in the environment you chose and reports the real exit code.
edit_file changes a file in the working folder and shows a diff for you to accept.
In Ask first mode you approve every action that changes something before it runs.
Gridberry runs on Windows 10/11 and reaches your Linux system over SSH, or inside WSL on your own PC. Shell commands run in that environment, while the file tools work in the chat's working folder. A home lab, a virtual machine or a test machine all work, as long as the machine is yours or you have written permission to administer it. The agent shows the exact command and what it will change, and in Ask first mode it waits for your approval.
ls -ld /srv/wwwdrwxr-x---getent group www1 matchid deployerexit 0chgrp www /srv/wwwexit 0chmod g+rx /srv/wwwexit 0ls -ld /srv/wwwdrwxr-x---Using a different user account for different tasks keeps the jobs apart, so start with the account. Gridberry runs adduser deployer with Shell, and the system creates a home folder and asks for a password. Then it runs id deployer to show the user ID and the groups. Some people ask for a second user account with the same home folder, but a shared group on one folder is easier to audit. Back up /etc/passwd before the change. In Ask first mode you approve the creation step, and you test the login with a harmless command afterwards. If adduser reports that the name already exists, read the message in the card, pick another name and run the step again. The manual page of your own system, which http_get can fetch, lists the options that differ between systems.
The search "add permission to user linux" usually ends at one answer: group membership plus the right letters on the folder. Gridberry shows the folder with ls -ld through Shell, proposes chgrp for the group and chmod g+rx or g+rwx for the rights, and never chmod 777. You see each command as a card before you accept it. Afterwards the same ls -ld output shows the new group and letters. Compare the 2 outputs yourself, because the card shows what the system reported, not what was intended. A non-zero exit code on the chgrp or chmod card means the change did not happen as planned. To go back, set the previous group and letters that the first ls -ld output recorded.
A common question regarding sudo is whether to edit the rules or to use a group. Most systems already let the members of one admin group, named sudo on some systems and wheel on others, run a command as the administrator. Gridberry adds the user with usermod -aG and lists the groups with id. If the rules themselves must change, you run visudo yourself, because visudo checks the syntax before saving and edit_file does not. Keep a second administrator session open while you do it. Plan only helps here: the agent writes the steps as a plan and runs nothing, so a colleague can read it before you switch to Ask first and carry it out.
If a user can run sudo but still gets permission denied on a folder, look at two causes first. A new group membership applies only after the next login, and the folder's group may lack the needed letters. Gridberry runs id and ls -ld with Shell, and the two outputs show which cause applies. It then proposes one change, such as chmod g+rx, and in Ask first mode waits for your approval. Run the failing action again and read the result. If the error remains, read the exact message in the card, which usually names the path that refuses access, and run ls -ld on that path to see its owner and group.
Gridberry is not a hosted service or a plugin. It is meant only for your own files, your PC and servers you are authorised to use, and you keep the work within them, because Shell, web and SSH are not limited to one folder. It does not guarantee that a command or an analysis is correct. It also does not replace a backup, a second administrator session or your own review of every diff and every command card before you accept it.