Authenticate/Don't have permissions to copy to Pi Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
TWHH
Posts: 56
Joined: Tue Jun 29, 2021 10:27 pm

Authenticate/Don't have permissions to copy to Pi

Post by TWHH »

Hi there,

After much help form the Devs I've almost completed my desired set up, just need to move some files from my Mac (on the same network) to my DietPi.

I've installed Samba server on the Pi and can mount the Pi HDD in Finder on the Mac. However when I go to copy files across from Mac to Pi I get a dialogue box asking me to Authenticate, but when I hit this button my Mac's Finder says:
The operation can’t be completed because you don’t have permission to modify some items.
I"m sure it's just a little adjustment that's needed, but not sure what.

Any help gratefully received.

Massive thanks
User avatar
trendy
Posts: 340
Joined: Tue Feb 25, 2020 2:54 pm

Re: Authenticate/Don't have permissions to copy to Pi

Post by trendy »

Could you post the /etc/samba/smb.conf as well as the ls -la of the directories you are sharing?
TWHH
Posts: 56
Joined: Tue Jun 29, 2021 10:27 pm

Re: Authenticate/Don't have permissions to copy to Pi

Post by TWHH »

Thanks for the reply and help.

When I enter the

Code: Select all

/etc/samba/smb.conf
command I get Permission denied

When I enter

Code: Select all

ls -la
I get the following:

Code: Select all

total 40
drwx------  7 root root 4096 Jul  2 12:19 .
drwxr-xr-x 21 root root 4096 Apr 21 22:58 ..
-rw-------  1 root root 2512 Jul  8 01:10 .bash_history
-rw-r--r--  1 root root  570 Jan 31  2010 .bashrc
drwxr-xr-x  3 root root 4096 Jun 30 13:04 .cache
drwx------  3 root root 4096 Jul  2 12:19 .config
drwxr-xr-x  3 root root 4096 Jun 30 21:17 .local
-rw-r--r--  1 root root  148 Aug 17  2015 .profile
drwxr-xr-x  2 root root 4096 Mar 26 12:01 .ssh
drwxr-xr-x  2 root root 4096 Jun 30 20:55 Shows
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: Authenticate/Don't have permissions to copy to Pi

Post by Joulinar »

I guess a misunderstanding. Pls share the content of the file. It's a configuration file and nothing to be executed ;)

Code: Select all

cat /etc/samba/smb.conf
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
TWHH
Posts: 56
Joined: Tue Jun 29, 2021 10:27 pm

Re: Authenticate/Don't have permissions to copy to Pi

Post by TWHH »

no, not a misunderstanding... me being totally out of my depth with Linux :)

I now need to work out how I navigate to/copy files within DietPi...
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: Authenticate/Don't have permissions to copy to Pi

Post by Joulinar »

Simply run cat /etc/samba/smb.conf command and copy/past output from SSH terminal
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
TWHH
Posts: 56
Joined: Tue Jun 29, 2021 10:27 pm

Re: Authenticate/Don't have permissions to copy to Pi

Post by TWHH »

Damn, you mods are good :)

Here's what I get:

Code: Select all

[global]

	workgroup = WORKGROUP
	server string = %h server
	dns proxy = no
	log file = /var/log/samba/log.%m
	max log size = 1000
	syslog only = no
	syslog = 0

	panic action = /usr/share/samba/panic-action %d

	security = user
	encrypt passwords = true
	passdb backend = tdbsam
	obey pam restrictions = yes
	unix password sync = yes

	passwd program = /usr/bin/passwd %u
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	pam password change = yes
	map to guest = bad user

	load printers = no
	printcap name = /dev/null
	disable spoolss = yes

[dietpi]
	comment = DietPi Share
	path = /mnt/dietpi_userdata
	browseable = yes
	create mask = 0664
	directory mask = 0775
	valid users = dietpi
	writeable = yes
max connections = 8
root@DietPi:~#
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: Authenticate/Don't have permissions to copy to Pi

Post by Joulinar »

Pls share ls -la /mnt/dietpi_userdata
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
TWHH
Posts: 56
Joined: Tue Jun 29, 2021 10:27 pm

Re: Authenticate/Don't have permissions to copy to Pi

Post by TWHH »

This is what I get. Had meant to change USB HDD name to something more user friendly, but don't think I can do that now that I've moved the User date there!

lrwxrwxrwx 1 root root 57 Jun 30 20:47 /mnt/dietpi_userdata -> /mnt/2e716fb9-d183-4470-8d45-ac0ea80c7329/dietpi_userda
User avatar
trendy
Posts: 340
Joined: Tue Feb 25, 2020 2:54 pm

Re: Authenticate/Don't have permissions to copy to Pi

Post by trendy »

ls -la /mnt/2e716fb9-d183-4470-8d45-ac0ea80c7329/dietpi_userdata ?
Post Reply