Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
 
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		- 
				
				 kurtr124769yOh and before someone tells me to use rmdir... kurtr124769yOh and before someone tells me to use rmdir...
 
 $ sudo rmdir remote_images
 rmdir: failed to remove ‘remote_images’: Not a directory
- 
				
				 kurtr124769yFor anyone who wants to know what the hell went wrong here... kurtr124769yFor anyone who wants to know what the hell went wrong here...
 
 This was a remote dir mounted from a samba share on another Windows webserver. The file permissions on Windows somehow got totally screwed and confused the hell outa linux.
- 
				
				@kurtr so the entire mount is fucked...
 If you can't unmount and mount again, I suggest you reboot your server, seems like the fastest solution.
 I hope for you this isn't critical production with loads of applications running on it.
- 
				
				 kurtr124769y@forkbomber kurtr124769y@forkbomber
 Is production. Managed to unmount it. Turns out it was the remote server. Some updates where done by someone else. Just restored the dir from a backup and its ace again.
- 
				
				 kurtr124769y@forkbomber Thats why they pay me lol. Special thanks to everyone for the fast tips and suggestions! Thats why I love this community! kurtr124769y@forkbomber Thats why they pay me lol. Special thanks to everyone for the fast tips and suggestions! Thats why I love this community!
- 
				
				 skonteam9569y@kurtr we don't pay you to spend your day on social media ! You are fired, go to Elisabeth ! skonteam9569y@kurtr we don't pay you to spend your day on social media ! You are fired, go to Elisabeth !



FML. Troubleshooting a bad mount. My server doesnt seem to know whether it wants "remote_images" to be a directory or a file lol.
admin@off001-truservcomm-jhb1-001:///var/...$ cd remote_images
admin@off001-truservcomm-jhb1-001:///var/...$ ls
ls: reading directory .: Not a directory
admin@off001-truservcomm-jhb1-001:///var/...$ sudo ls
ls: reading directory .: Not a directory
admin@off001-truservcomm-jhb1-001:///var/...$ cd ../
admin@off001-truservcomm-jhb1-001:///var/...$ mkdir remote_images
mkdir: cannot create directory ‘remote_images’: File exists
admin@off001-truservcomm-jhb1-001:///var/...$ rm remote_images
rm: cannot remove ‘remote_images’: No such file or directory
admin@off001-truservcomm-jhb1-001:///var/...$ sudo rm remote_images
rm: cannot remove ‘remote_images’: Is a directory
undefined
ubuntu server wtf