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.
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 cant go to my desktop using cd command.
There is
no such file or directory
error.
What am I doing wrong?
Try using an absolute path like cd /user/home/*YOUR_USERNAME*/Desktop please be advised that Unix bash is case sensitive.
If this don't work you can still run the ls - all command in your home directory to see all folders and files inside.
If you see the "Desktop" folder and just can't change into the directory try using sudo cd ~/Desktop
Hope that helps.
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
Ok this is embarrassing!! I wanted to move remote folder from downloads on to /var/www/html directory !! So I used the following command with sudo
mv /Downloads/remote /var/www/html/remote
And messed up entire file system !! All my home folders which includes downloads, folders and data on desktop everything is moved in /var/www/html/remote and no application or files seems to open !! The only thing that opens is the terminal !! How can I fix this please help !!
First thing to try to reverse it:
sudo mv /var/www/html/remote/<your_user_name> /home/
Otherwise if <your_user_name> isn't in /var/www/html/remote/, do a:
sudo cp -rp /var/www/html/remote/<your_user_name>/* /home/<your_user_name>/
then remove manually what shouldn't be in directory remote and what shouldn't be in directory /home/<your_user_name>/...
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
I was reading a book on UNIX when I came across this question.
The command
cp hosts backup/hosts.bak
did not work even though all files exist. Name three possible reasons.
I could think of one only and that too I am not sure about.
According to me one reason can be the current directory is not writable by the user.
Please help me out to know the actual reasons.
backup/ is not writeable by the user
hosts is not readable by the user
the disk where backup/ is located is full
hosts is a directory, not a file
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.