Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I get a prompt for a password, even if I've already run sudo just before. Entering my username password, the correct password for the share, and server/password (substituting the appropriate information) does nothing but get me:
I actually said and meant users, because that way anyone can mount
and unmount, while with user only the person who mounted it can unmount it
again (and root, of course).
I actually said and meant users, because that way anyone can mount
and unmount, while with user only the person who mounted it can unmount it
again (and root, of course).
Cheers,
Tink
I used "users" as you suggested. It still isn't working. I'm thinking maybe my cred-file is incorrectly set up, but I'm not sure. Refer to above. (Yes, I am certain the username and password are correct.)
It's not clear to me that you are entering the right password at the right prompt. You do understand that each time you run sudo, you will need to enter a password (if it is configured to require a password, at all). So running
Code:
sudo mount -a
may require you to enter two passwords: one for sudo, and one for smbmount (actually a username + password).
I just want to clarify that you understand this concept.
sudo mount -t smbfs //wecco_serv/F_Drive /mnt/fdrive -o credentials=/etc/samba/cred-file,uid=ronadams,gid=users
You'll need to enter your linux password once for sudo. If you are asked for a username and/or password after than then you need to look at your credentials file.
Quote:
Originally Posted by theNbomr
In a similar vein, what happens if you run
Code:
mount -a
as root (not sudo)?
Ubuntu has the root user disabled by default, so you can't su to root etc. To get a root shell you have to do
sudo mount -t smbfs //wecco_serv/F_Drive /mnt/fdrive -o credentials=/etc/samba/cred-file,uid=ronadams,gid=users
You'll need to enter your linux password once for sudo. If you are asked for a username and/or password after than then you need to look at your credentials file.
Ubuntu has the root user disabled by default, so you can't su to root etc. To get a root shell you have to do
Code:
sudo -i
Thank you, thank you. That worked wonderfully. I also incorporated the "username=foo" instead of "username foo" suggestion; I'm not sure if that helped or not (it certainly didn't hurt!). I'll test that later.
PS: Regarding logging in as root, one of the first things I do with any new Ubuntu install is
I'm glad you got it to work
For the credentials file the man page says its in the format
username = <value>
password = <value>
(with spaces) but I guess it's a bit forgiving.
I know about "sudo passwd root" (was also the 1st thing I did) but not all users will have it so that's why i gave the sugestion "sudo -i" works well, you could even do "sudo bash"
I'm glad you got it to work
For the credentials file the man page says its in the format
username = <value>
password = <value>
(with spaces) but I guess it's a bit forgiving.
Ah. Well, I suppose I better maintain the standards then... ;]
Quote:
I know about "sudo passwd root" (was also the 1st thing I did) but not all users will have it so that's why i gave the sugestion "sudo -i" works well, you could even do "sudo bash"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.