Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I'm trying to run the following command in Terminal:
chown -R couchdb:couchdb /usr/local/var/log/couchdb
However, I keep getting this message:
chown: couchdb: illegal group name
I am using mac osx (mountain lion) and I have command line tools installed. I really don't know very much about unix, but I've been googling the illegal group name error and haven't turned up anything that would help. What am I overlooking? Any additional resources you think might be helpful also appreciated.
Try using just the owner if no group.
sudo chown -R user: /usr/local/var/log/couchdb
illegal group name actually means that the group you're specifying (the couchdb after the colon -- the first couchdb is the user) doesn't exist. You need to either create the group, stop specifying a group, or specify a group that exists.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I am trying to build my validator for Solana. I installed Solana on the main user.
I created another user to restrict the access to sudo. I can run the Solana command from my main user but on the limited user it says command not found. does anybody know what is the problem?
The Solana install tool sets everything up in $HOME/.local/share/solana/install/active_release/bin and adds that directory to your $PATH in .profile. This directory is not in your other user's path, so it is inaccessible to the other user.
To solve this, you can:
redo the install steps as your other user
Or
add your main user's $HOME/.local/share/solana/install/active_release/bin to your other's $PATH, ie:
export PATH="/home/$MAIN_USER_NAME/.local/share/solana/install/active_release/bin:$PATH"
where $MAIN_USER_NAME is the name of the user that has installed the Solana tools.
Also, you can double-check the existing installation by running which solana as the main user.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I'm trying to execute the below command on my new MacBook and was getting the '-bash: sudo scp: command not found' error.
Please help me fixing this issue.
sudo scp -i Pem_File_Name.pem PHP_File_Name.php centos#Host_Path:/var/www/html/Folder_Name/
The Pen_File_Name, PHP_File_Name and Host_Path are replaced with their respected values.
Thanks in advance.
Geeth.
From the error, I'd guess that you have something other than a normal space (maybe a non-breaking space) between "sudo" and "scp". The reason I think this is that the error message says the command "sudo scp" was not found -- but the command should be "sudo" (which should then run "scp" as a separate command). This means that for some reason bash is treating "sudo scp" as a single word instead of two.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
My operating system is Mac OS X.
I want to use bash command to let other people use ssh to connect my computer.
How do I do?
set up a user account for them on your computer;
allow logon privileges for the user.
OS X Server puts a pretty GUI face on doing this.
You need to edit the /etc/ssh/sshd_config file and add the user to the end of the file with the following syntax. Also that user will need to be a valid user on the local machine or found in a bound directory service.
vi /etc/ssh/sshd_config
AllowUsers username1
There are other settings you can set in regards to ciphers and keys that improve security. Also you may need to modify any firewall settings that may be in place.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
When I run sudo su on my mac os x (10.8.5) MacBook Air, the shell changes for some reason:
bos-mp2o6:~ rabdelaz$ sudo su
Password:
sh-3.2#
What's up with that?
The only thing I've done is install Heroku Toolbelt and, after getting sudo: unable to cache user root, already exists, rebooting.
When you use sudo su, it runs the superuser's .bashrc, so you get its prompt instead of your own.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I trying to make mount smb folder on startup.
I do like here - http://aj.tarachanowicz.com/?p=158
But I have error constantly - "Too many user".
May be somebody meet this error?
Thank you.
My answer is an adaptation of the answer in https://discussions.apple.com/thread/3221944?start=15&tstart=0
The variation is, I moved the mount point from your home directory to a system area (e.g. /smb) and ensuring that the user can create that mount point, i.e. 4755 permissions.
Add this line to the end of /etc/auto_master:
/- auto_smb
Create parent folder:
sudo mkdir /smb
sudo chmod 4755 /smb
Create /etc/auto_smb with:
/smb/folder -fstype=smbfs,soft ://domain;user:password#server/folder
Run automount:
automount -vc
The troubleshooting points are:
If you encounter "Too many users" you need to review your SMB path for typos and syntax errors.
Also be careful of incorrect username / passwords, or passwords with special symbols. e.g. # would need to be replaced with %40.