Re: Samba broken pipe -

2019-07-27 Thread Bob Goodwin



On 7/26/19 9:17 PM, Ed Greshko wrote:

On 7/27/19 7:59 AM, Bob Goodwin wrote:


On 7/26/19 7:34 PM, Ed Greshko wrote:

On 7/27/19 3:44 AM, Bob Goodwin wrote:

It still works when mounted from root except now it comes up read-only and the 
users
can't save files to it.

What is read only?

Output of "mount | grep sd"


.

Server
root@box48 ~]# mount | grep sd
/dev/sda3 on / type ext4 (rw,relatime,seclabel,data=ordered)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/sdb1 on /home type ext4 (rw,relatime,seclabel,data=ordered)
/dev/sda1 on /boot type ext4 (rw,relatime,seclabel,stripe=4,data=ordered)

Client
[bobg@bobg ~]$ mount | grep sd
cgroup2 on /sys/fs/cgroup/unified type cgroup2
(rw,nosuid,nodev,noexec,relatime,seclabel,nsdelegate)
/dev/sdb4 on / type ext4 (rw,relatime,seclabel)
/dev/sdb2 on /boot type ext4 (rw,relatime,seclabel)
/dev/sdb1 on /boot/efi type vfat
(rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=winnt,errors=remount-ro)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse
(rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

I can't save anything from the client to the server unless I sftp to the 
server, but
that has been a problem for a long time. Until recently the iPhones, etc were 
always
able to create directories and save files. Something I haven't been able to do 
by saving
to /mnt/box48/ However I rarely need to do that so I live with sftp.

The real problem now is the server is not accesile from the iPhones/iPads and I 
am
getting complaints ... (from family members)



I take it from this by "read-only" you mean you can read the samba share from 
the Linux
side but you can't write. And this has been the case since "forever".  Yes?

.
Correct. /etc/fstab does: //192.168.2.8/smbBOX48 /mnt/box48/    cifs    
    defaults,password=smbpassword   0 0


but I still have to mount manually after boot: # mount 
//192.168.2.8/smbBOX48/  /mnt/box48/ and enter the smb password.
After which I can view directories in /mnt/box48/ with the Thunar file 
manager and view files with VLC, whatever. Also I am unablt to access 
"box48 with an iPad.





Also, iPhones had no issue until recently.  Yes?

.
Yes, until the other day when she created a new directory from an iPhone 
and was unable to save a group of photos to it, it seems that after that 
she could not save anything or create another directory, as I understand 
the problem. However I was ablr=t to load put a .mov clip in the 
directory from my Fedora30 using sftp.


Now miraculously, it appears that the Samba server is accessible from 
her iPhone and allowing to save some files.


Well, sounds more like a samba configuration issue than anything.  Have you 
looked at the
samba logs at all?

I am not aware of a Samba log, where do I find it?

[root@bobg Desktop]# ll /var/log/samba/
total 4
drwx--. 2 root root 4096 Jun 20 15:42 old

And it is empty:
[root@bobg Desktop]# ll /var/log/samba/old
total 0

I have been working on this all day and so far the above is what I have 
found.


It seems that when a directory is created from the iPhone it is being 
created read only. /am trying changing permissions and willsee if that 
affects that problem, probably not itsounds like an smb config problem 
butI thought I have it all set right? More to do ...


Thanks for the help,

Bob
/-

Bob Goodwin - Zuni, Virginia, USA
http://www.qrz.com/db/W2BOD
box83  FEDORA-30/64bit LINUX XFCE Fastmail POP3
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Samba broken pipe -

2019-07-26 Thread Ed Greshko
On 7/27/19 7:59 AM, Bob Goodwin wrote:
>
>
> On 7/26/19 7:34 PM, Ed Greshko wrote:
>> On 7/27/19 3:44 AM, Bob Goodwin wrote:
>>> It still works when mounted from root except now it comes up read-only and 
>>> the users
>>> can't save files to it.
>> What is read only?
>>
>> Output of "mount | grep sd"
>>
> .
>
> Server
> root@box48 ~]# mount | grep sd
> /dev/sda3 on / type ext4 (rw,relatime,seclabel,data=ordered)
> nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
> /dev/sdb1 on /home type ext4 (rw,relatime,seclabel,data=ordered)
> /dev/sda1 on /boot type ext4 (rw,relatime,seclabel,stripe=4,data=ordered)
>
> Client
> [bobg@bobg ~]$ mount | grep sd
> cgroup2 on /sys/fs/cgroup/unified type cgroup2
> (rw,nosuid,nodev,noexec,relatime,seclabel,nsdelegate)
> /dev/sdb4 on / type ext4 (rw,relatime,seclabel)
> /dev/sdb2 on /boot type ext4 (rw,relatime,seclabel)
> /dev/sdb1 on /boot/efi type vfat
> (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=winnt,errors=remount-ro)
> gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse
> (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
>
> I can't save anything from the client to the server unless I sftp to the 
> server, but
> that has been a problem for a long time. Until recently the iPhones, etc were 
> always
> able to create directories and save files. Something I haven't been able to 
> do by saving
> to /mnt/box48/ However I rarely need to do that so I live with sftp.
>
> The real problem now is the server is not accesile from the iPhones/iPads and 
> I am
> getting complaints ... (from family members)
>
>

I take it from this by "read-only" you mean you can read the samba share from 
the Linux
side but you can't write. And this has been the case since "forever".  Yes? 

Also, iPhones had no issue until recently.  Yes?

Well, sounds more like a samba configuration issue than anything.  Have you 
looked at the
samba logs at all?






-- 
Right: I dislike the default color scheme Wrong: What idiot picked the default 
color scheme
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Samba broken pipe -

2019-07-26 Thread Bob Goodwin



On 7/26/19 7:34 PM, Ed Greshko wrote:

On 7/27/19 3:44 AM, Bob Goodwin wrote:

It still works when mounted from root except now it comes up read-only and the 
users
can't save files to it.

What is read only?

Output of "mount | grep sd"


.

Server
root@box48 ~]# mount | grep sd
/dev/sda3 on / type ext4 (rw,relatime,seclabel,data=ordered)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/sdb1 on /home type ext4 (rw,relatime,seclabel,data=ordered)
/dev/sda1 on /boot type ext4 (rw,relatime,seclabel,stripe=4,data=ordered)

Client
[bobg@bobg ~]$ mount | grep sd
cgroup2 on /sys/fs/cgroup/unified type cgroup2 
(rw,nosuid,nodev,noexec,relatime,seclabel,nsdelegate)

/dev/sdb4 on / type ext4 (rw,relatime,seclabel)
/dev/sdb2 on /boot type ext4 (rw,relatime,seclabel)
/dev/sdb1 on /boot/efi type vfat 
(rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=winnt,errors=remount-ro)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse 
(rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)


I can't save anything from the client to the server unless I sftp to the 
server, but that has been a problem for a long time. Until recently the 
iPhones, etc were always able to create directories and save files. 
Something I haven't been able to do by saving to /mnt/box48/ However I 
rarely need to do that so I live with sftp.


The real problem now is the server is not accesile from the 
iPhones/iPads and I am getting complaints ... (from family members)



--
Bob Goodwin - Zuni, Virginia, USA
http://www.qrz.com/db/W2BOD
box83  FEDORA-30/64bit LINUX XFCE Fastmail POP3
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Samba broken pipe -

2019-07-26 Thread Ed Greshko
On 7/27/19 3:44 AM, Bob Goodwin wrote:
> It still works when mounted from root except now it comes up read-only and 
> the users
> can't save files to it.

What is read only?

Output of "mount | grep sd"

-- 
Right: I dislike the default color scheme Wrong: What idiot picked the default 
color scheme
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Samba broken pipe -

2019-07-26 Thread Bob Goodwin



On 7/26/19 5:14 PM, Tim Evans wrote:

On 7/26/19 5:08 PM, Bob Goodwin wrote:


It doesn't appear to be /bin/bash permissions:

[root@bobg bobg]# ssh root@192.168.2.8
root@192.168.2.8's password:
Last login: Fri Jul 26 15:07:13 2019 from 192.168.2.153
[root@box48 ~]# ls -l /bin/bash
-rwxr-xr-x. 1 root root 1072056 May 17  2016

I will continue looking at permissions. Thanks for the response,


Check your free disk space. I remember logins with similar errors from 
the olden days on AIX.



.
It doesn't look like it from what I see here:

[root@box48 ~]# df -h
Filesystem  Size  Used Avail Use% Mounted on
devtmpfs    3.8G 0  3.8G   0% /dev
tmpfs   3.8G 0  3.8G   0% /dev/shm
tmpfs   3.8G  1.1M  3.8G   1% /run
tmpfs   3.8G 0  3.8G   0% /sys/fs/cgroup
/dev/sda3   680G  405G  248G  63% /
tmpfs   3.8G  4.0K  3.8G   1% /tmp
/dev/sdb1   688G  404G  250G  62% /home
/dev/sda1   477M  169M  279M  38% /boot
tmpfs   761M 0  761M   0% /run/user/0



--
Bob Goodwin - Zuni, Virginia, USA
http://www.qrz.com/db/W2BOD
box83  FEDORA-30/64bit LINUX XFCE Fastmail POP3
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Samba broken pipe -

2019-07-26 Thread Tim Evans

On 7/26/19 5:08 PM, Bob Goodwin wrote:


It doesn't appear to be /bin/bash permissions:

[root@bobg bobg]# ssh root@192.168.2.8
root@192.168.2.8's password:
Last login: Fri Jul 26 15:07:13 2019 from 192.168.2.153
[root@box48 ~]# ls -l /bin/bash
-rwxr-xr-x. 1 root root 1072056 May 17  2016

I will continue looking at permissions. Thanks for the response,


Check your free disk space. I remember logins with similar errors from 
the olden days on AIX.


--
Tim Evans   |5 Chestnut Court
443-394-3864|Owings Mills, MD 21117
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Samba broken pipe -

2019-07-26 Thread Bob Goodwin



On 7/26/19 4:17 PM, Ben Cotton wrote:

/bin/bash: Permission denied
Connection to 192.168.2.8 closed.

I am still able to ssh connect as root and reset bobg's password, only
to get the same "Permission denied."


Based on that output, I am not surprised that resetting the password
didn't work. Notice that it's saying permission is denied for
/bin/bash. When you log in as root, are the permissions on /bin/bash
correct? It should be 755

correct? It should be 755


It doesn't appear to be /bin/bash permissions:

[root@bobg bobg]# ssh root@192.168.2.8
root@192.168.2.8's password:
Last login: Fri Jul 26 15:07:13 2019 from 192.168.2.153
[root@box48 ~]# ls -l /bin/bash
-rwxr-xr-x. 1 root root 1072056 May 17  2016

I will continue looking at permissions. Thanks for the response,

Bob

--
Bob Goodwin - Zuni, Virginia, USA
http://www.qrz.com/db/W2BOD
box83  FEDORA-30/64bit LINUX XFCE Fastmail POP3
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Samba broken pipe -

2019-07-26 Thread Alessio
On Fri, Jul 26, 2019, 10:22 PM Ben Cotton  wrote:

> On Fri, Jul 26, 2019 at 3:45 PM Bob Goodwin 
> wrote:
> >
> > /bin/bash: Permission denied
> > Connection to 192.168.2.8 closed.
> >
> > I am still able to ssh connect as root and reset bobg's password, only
> > to get the same "Permission denied."
> >
>

Do you have a home partition separated from the root one? Is the home
partition mounted read only?

A.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Samba broken pipe -

2019-07-26 Thread Ben Cotton
On Fri, Jul 26, 2019 at 3:45 PM Bob Goodwin  wrote:
>
> /bin/bash: Permission denied
> Connection to 192.168.2.8 closed.
>
> I am still able to ssh connect as root and reset bobg's password, only
> to get the same "Permission denied."
>
Based on that output, I am not surprised that resetting the password
didn't work. Notice that it's saying permission is denied for
/bin/bash. When you log in as root, are the permissions on /bin/bash
correct? It should be 755:

[🎩1036 bcotton@fpgm ~ ]$ ls -l /bin/bash
-rwxr-xr-x. 1 root root 2187664 May 13 08:18 /bin/bash
[🎩1037 bcotton@fpgm ~ ]$

If not, that's the immediate problem. You can check for other files
with incorrect attributes with the `rpm -Va` command. (See the rpm man
page for more about verification)

-- 
Ben Cotton
He / Him / His
Fedora Program Manager
Red Hat
TZ=America/Indiana/Indianapolis
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Samba broken pipe -

2019-07-26 Thread Bob Goodwin



On 7/26/19 12:02 PM, Bob Goodwin wrote:

.
This morning I am unable to ssh into the samba server. I get an error: 
"client_loop: send disconnect: Broken pipe" although I am still able 
to access the server files on another connection. Has something 
changed recently limiting me to one connection at a time? Or perhaps 
another problem?


Bob


'
Now the nature of my problem has changed. I shut the server down with 
the on/off button and restarted it, then instead of the "broken pipe" I 
am denied access:

[root@bobg bobg]# ssh bobg@192.168.2.8
bobg@192.168.2.8's password:
Last login: Fri Jul 26 14:22:44 2019 from 192.168.2.153
/bin/bash: Permission denied
Connection to 192.168.2.8 closed.

I am still able to ssh connect as root and reset bobg's password, only 
to get the same "Permission denied."


This server has been running for several years and has always worked 
until now. It still works when mounted from root except now it comes up 
read-only and the users can't save files to it. We had a messy power 
failure a few days ago but the servers are on an UPS and I had to shut 
them down to save battery charge. Dunno if something happened then but 
that was about when trouble started ...


Any suggestions appreciated,

Bob

--
Bob Goodwin - Zuni, Virginia, USA
http://www.qrz.com/db/W2BOD
box83  FEDORA-30/64bit LINUX XFCE Fastmail POP3
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Samba broken pipe -

2019-07-26 Thread Bob Goodwin

.
This morning I am unable to ssh into the samba server. I get an error: 
"client_loop: send disconnect: Broken pipe" although I am still able to 
access the server files on another connection. Has something changed 
recently limiting me to one connection at a time? Or perhaps another 
problem?


Bob

--
Bob Goodwin - Zuni, Virginia, USA
http://www.qrz.com/db/W2BOD
box83  FEDORA-30/64bit LINUX XFCE Fastmail POP3
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org