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 am trying to access a shared drive. Here is part of my samba configuration:
[pihome]
comment= Pi Home
path = /disk1/
browseable=Yes
available = yes
read only = no
writeable=Yes
only guest=no
create mask=0777
directory mask=0777
public=no
sorry...
it asks me to login when I try to paste a file onto the rpi share, and when I enter my local account information, it tells me that i "don't have permission to access some of the items."
If you are communicating with a Mac, then NFS would work better. Using Samba requires the Mac to translate its identification to a Windows form, and the Pi to translate that form back into its identification... and both the Mac and Pi already use the same methods.
I would guess that you need to add a samba password:
sudo smbpasswd -a username
So I did
Code:
sudo pdbedit -L -v
, showing the user, "pi". when I try to login on the mac, it shows my full name as the username. I reset the password, and tried the new password, and it rejects it. The only password it accepts is my Mac local user account, but then I get a "no permission" error message. I also tried "pi" as the username, and the new password, but that fails as well. I am trying to paste a item on the rpi.
So lets try this again... From the finders go menu select connect to server.
Enter for the server address:
smb://Pi_IP_Address
A window should pop up requesting authentication. You should use Pi for the username and the smb password you created on the Pi previously. If that works you should see another window with a list of shares. Hopefully you should see the pihome share. Select ok and your in.
Another method to transfer files is scp of sftp. You need to start the ssh server on the pi. The command syntax is:
scp filename pi@IP_address:/disk1/filename
For the first method, I am able to login. I select the share, and it comes up. I paste the item, and I get a prompt saying "Finder wants to make changes. Type your password to allow this". The pi username/password does not work. When I use my local mac user account login, it accepts, but them tells me that I don't have permission to paste to the destination.
Actually, there several bugs in the example in that link.
1. The fstab entry shown does not have the filesystem type field filled in, which will cause the mount to fail.
2. the UID=/GID= options only work for non-Linux native filesystems (udf/fat/vfat/ntfs/iso9660). This COULD cause the mount to fail, but it is also possible the options get ignored.
Normally, the filesystem root remains owned by root. What is done instead is that any file shares start with a directory within the filesystem. That way the protection of "lost+found" is maintained as remote hosts cannot make improper modifications or access files they are not supposed to have access to.
Between Mac OSX and Linux, it is better to use NFS. Samba is designed to work with Windows systems.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.